mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
b4b87ceff4
This patch adds an `is_optimized` variable, orthogonal to `is_debug`, to allow for a gn analogue to `RelWithDebInfo` builds. As part of this we'll want to explicitly enable GC+ICF, for the sake of `is_debug && is_optimized` builds. The flags normally default to true except that if you pass `/DEBUG` they default to false. Differential Revision: https://reviews.llvm.org/D58075 llvm-svn: 353888
14 lines
314 B
Plaintext
14 lines
314 B
Plaintext
declare_args() {
|
|
# Whether to build with debug information.
|
|
is_debug = false
|
|
}
|
|
|
|
# args that depend on other args must live in a later declare_args() block.
|
|
declare_args() {
|
|
# Whether to build with optimizations.
|
|
is_optimized = !is_debug
|
|
|
|
# Whether to enable assertions.
|
|
llvm_enable_assertions = true
|
|
}
|