1declare_args() { 2 # Whether to use goma (https://chromium.googlesource.com/infra/goma/client/) 3 use_goma = false 4 5 # Set this to a clang build directory. If set, that clang is used as compiler. 6 # goma only works with compiler binaries it knows about, so useful both for 7 # using a goma-approved compiler and for compiling clang with a locally-built 8 # clang in a different build directory. 9 # On Windows, setting this also causes lld-link to be used as linker. 10 # Example value: getenv("HOME") + "/src/llvm-build/Release+Asserts" 11 clang_base_path = "" 12 13 # Set this to the path to Android NDK r21. If set, cross compilation targeting 14 # Android will be enabled. 15 android_ndk_path = "" 16} 17 18declare_args() { 19 # Set if the host compiler is clang. On by default on Mac or if 20 # clang_base_path is set. 21 is_clang = host_os == "mac" || clang_base_path != "" 22 23 # Set this to true to link with LLD instead of the default linker. 24 use_lld = clang_base_path != "" && host_os != "mac" 25} 26