diff options
author | itrofimow <itrofimow@yandex-team.com> | 2024-10-03 20:20:23 +0300 |
---|---|---|
committer | itrofimow <itrofimow@yandex-team.com> | 2024-10-03 20:32:05 +0300 |
commit | 20f674f40948e54f1515e9cc15170a4828f549eb (patch) | |
tree | 21df7654430bd99e4c7af581823257e2912194a4 /build/conf | |
parent | e6d59313e3296c62525d51eba9082665099bda76 (diff) | |
download | ydb-20f674f40948e54f1515e9cc15170a4828f549eb.tar.gz |
feat build: enable DWARF discriminators (-fdebug-info-for-profiling) by default in release builds
commit_hash:c682d62da9d9cbac131c171bbe2ea4d3216b37aa
Diffstat (limited to 'build/conf')
-rw-r--r-- | build/conf/compilers/gnu_compiler.conf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build/conf/compilers/gnu_compiler.conf b/build/conf/compilers/gnu_compiler.conf index 91b43ac638..161f305f4e 100644 --- a/build/conf/compilers/gnu_compiler.conf +++ b/build/conf/compilers/gnu_compiler.conf @@ -26,6 +26,10 @@ 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 + } } _CROSS_SUFFIX=.pic |