Skip to content

Commit fba2db3

Browse files
committed
Move -fdebug-default-version=4 closer to other debug info controls
commit_hash:3f063a842b4fe5e505de07c55dd6cb78980526a7
1 parent 2e9f0e3 commit fba2db3

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

build/conf/compilers/gnu_compiler.conf

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ when ($CLANG == "yes") {
2424
}
2525

2626
_DEBUG_INFO_FLAGS=-g
27-
when ($OS_LINUX == "yes") {
28-
_DEBUG_INFO_FLAGS=-g -ggnu-pubnames
29-
# Clang's more accurate debug info for sampling-PGO purposes. PGO only makes sense in release builds
30-
when ($CLANG == "yes" && $_BUILD_RELEASE == "yes") {
31-
_DEBUG_INFO_FLAGS+=-fdebug-info-for-profiling
27+
when ($CLANG == "yes") {
28+
_DEBUG_INFO_FLAGS+=-fdebug-default-version=4
29+
when ($OS_LINUX == "yes") {
30+
_DEBUG_INFO_FLAGS+=-ggnu-pubnames
31+
when ($_BUILD_RELEASE == "yes") {
32+
# Clang's more accurate debug info for sampling-PGO purposes. PGO only makes sense in release builds
33+
_DEBUG_INFO_FLAGS+=-fdebug-info-for-profiling
34+
}
3235
}
3336
}
3437

build/ymake_conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,6 @@ def __init__(self, tc, build):
14491449
'-fcolor-diagnostics',
14501450
# Enable aligned allocation
14511451
'-faligned-allocation',
1452-
'-fdebug-default-version=4',
14531452
]
14541453
elif self.tc.is_gcc:
14551454
if self.target.is_xtensa or self.target.is_tc32:

0 commit comments

Comments
 (0)