[llvm] 0083a02 - [gn build] Slighly nicer `gn args --list` output for is_debug and symbol_level
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 15 16:24:44 PDT 2022
Author: Nico Weber
Date: 2022-06-15T19:24:32-04:00
New Revision: 0083a02839c3365af4b406042d35b82ded6b505c
URL: https://github.com/llvm/llvm-project/commit/0083a02839c3365af4b406042d35b82ded6b505c
DIFF: https://github.com/llvm/llvm-project/commit/0083a02839c3365af4b406042d35b82ded6b505c.diff
LOG: [gn build] Slighly nicer `gn args --list` output for is_debug and symbol_level
Added:
Modified:
llvm/utils/gn/build/buildflags.gni
Removed:
################################################################################
diff --git a/llvm/utils/gn/build/buildflags.gni b/llvm/utils/gn/build/buildflags.gni
index e6d7ca1806a9..ca43a2499edc 100644
--- a/llvm/utils/gn/build/buildflags.gni
+++ b/llvm/utils/gn/build/buildflags.gni
@@ -1,5 +1,5 @@
declare_args() {
- # Whether to build with debug information.
+ # Build for debugging. Equivalent to is_optimized=false symbol_level=2.
is_debug = false
# Whether to build with tsan.
@@ -29,10 +29,11 @@ declare_args() {
# Whether to build with optimizations.
is_optimized = !is_debug
- # Debug info symbol level.
if (is_debug) {
+ # Debug info symbol level. 0: No symbols; 1: Line numbers; 2: Full symbols.
symbol_level = 2
} else {
+ # Debug info symbol level. 0: No symbols; 1: Line numbers; 2: Full symbols.
symbol_level = 0
}
}
More information about the llvm-commits
mailing list