1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 10:17:34 +00:00

Meta: Add options for lldb and gdb output to gn

This makes it possible to specify (instead of is_debug) a more
specialized is_debug_lldb or is_debug_gdb, so that clang outputs the
proper symbols. (For lldb this fixes issues with formatting by
setting -fstandalone-debug)
This commit is contained in:
Sebastian Zaha 2023-08-12 22:46:22 +02:00 committed by Andrew Kaster
parent 1b395a3df9
commit a0fb1478bf
2 changed files with 18 additions and 3 deletions

View file

@ -1,9 +1,17 @@
declare_args() {
# Build for debugging. Equivalent to is_optimized=false symbol_level=2.
is_debug = false
# https://clang.llvm.org/docs/UsersManual.html#controlling-debugger-tuning
# Build with clang for debugging, tuned for a specific debugger.
# Both imply is_debug = true.
is_debug_lldb = false
is_debug_gdb = false
}
# args that depend on other args must live in a later declare_args() block.
declare_args() {
# Build for debugging. Equivalent to is_optimized=false symbol_level=2.
is_debug = is_debug_lldb || is_debug_gdb
}
declare_args() {
# Whether to build with optimizations.
is_optimized = !is_debug