brintos

brintos / llvm-project-archived public Read only

0
0
Text · 935 B · ca43a24 Raw
40 lines · plain
1declare_args() {2  # Build for debugging. Equivalent to is_optimized=false symbol_level=2.3  is_debug = false4 5  # Whether to build with tsan.6  use_tsan = false7 8  # Whether to build with ubsan.9  use_ubsan = false10 11  # Whether to build with asan.12  use_asan = false13 14  # Whether to enable assertions.15  llvm_enable_assertions = true16 17  # Whether to enable expensive checks.18  llvm_enable_expensive_checks = false19 20  # Whether to build with ThinLTO.21  use_thinlto = false22 23  # Max jobs per ThinLTO link.24  max_jobs_per_lto_link = 825}26 27# args that depend on other args must live in a later declare_args() block.28declare_args() {29  # Whether to build with optimizations.30  is_optimized = !is_debug31 32  if (is_debug) {33    # Debug info symbol level. 0: No symbols; 1: Line numbers; 2: Full symbols.34    symbol_level = 235  } else {36    # Debug info symbol level. 0: No symbols; 1: Line numbers; 2: Full symbols.37    symbol_level = 038  }39}40