aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorspreis <spreis@yandex-team.com>2024-12-09 09:33:40 +0300
committerspreis <spreis@yandex-team.com>2024-12-09 09:50:56 +0300
commitfba2db3ebebc7dfc21481530d357e4815cb24513 (patch)
tree7e011fca4c655c2f780e023f073814203ed420ed /build
parent2e9f0e3f55ab1c9718a9dd08a474360af289eb9b (diff)
downloadydb-fba2db3ebebc7dfc21481530d357e4815cb24513.tar.gz
Move -fdebug-default-version=4 closer to other debug info controls
commit_hash:3f063a842b4fe5e505de07c55dd6cb78980526a7
Diffstat (limited to 'build')
-rw-r--r--build/conf/compilers/gnu_compiler.conf13
-rwxr-xr-xbuild/ymake_conf.py1
2 files changed, 8 insertions, 6 deletions
diff --git a/build/conf/compilers/gnu_compiler.conf b/build/conf/compilers/gnu_compiler.conf
index f87de04a53..56bc94fdd2 100644
--- a/build/conf/compilers/gnu_compiler.conf
+++ b/build/conf/compilers/gnu_compiler.conf
@@ -24,11 +24,14 @@ when ($CLANG == "yes") {
}
_DEBUG_INFO_FLAGS=-g
-when ($OS_LINUX == "yes") {
- _DEBUG_INFO_FLAGS=-g -ggnu-pubnames
- # Clang's more accurate debug info for sampling-PGO purposes. PGO only makes sense in release builds
- when ($CLANG == "yes" && $_BUILD_RELEASE == "yes") {
- _DEBUG_INFO_FLAGS+=-fdebug-info-for-profiling
+when ($CLANG == "yes") {
+ _DEBUG_INFO_FLAGS+=-fdebug-default-version=4
+ when ($OS_LINUX == "yes") {
+ _DEBUG_INFO_FLAGS+=-ggnu-pubnames
+ when ($_BUILD_RELEASE == "yes") {
+ # Clang's more accurate debug info for sampling-PGO purposes. PGO only makes sense in release builds
+ _DEBUG_INFO_FLAGS+=-fdebug-info-for-profiling
+ }
}
}
diff --git a/build/ymake_conf.py b/build/ymake_conf.py
index 0e8548d2ad..762b6f4e9f 100755
--- a/build/ymake_conf.py
+++ b/build/ymake_conf.py
@@ -1449,7 +1449,6 @@ class GnuCompiler(Compiler):
'-fcolor-diagnostics',
# Enable aligned allocation
'-faligned-allocation',
- '-fdebug-default-version=4',
]
elif self.tc.is_gcc:
if self.target.is_xtensa or self.target.is_tc32: