1declare_args() { 2 # If set, this is prepended to compile action command lines (e.g. `"ccache"`). 3 compiler_wrapper = "" 4 5 # Set this to a clang build directory. If set, that clang is used as compiler. 6 # On Windows, setting this also causes lld-link to be used as linker. 7 # Example value: getenv("HOME") + "/src/llvm-build/Release+Asserts" 8 clang_base_path = "" 9 10 # Set this to the path to Android NDK r21. If set, cross compilation targeting 11 # Android will be enabled. 12 android_ndk_path = "" 13 14 # Set this to the path of the Win SDK. Only used for cross compilation. If set, cross compilation targeting Windows will be enabled. 15 win_sysroot = "" 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 != "" 25} 26 27assert( 28 !(host_os == "win" && win_sysroot != ""), 29 "win_sysroot should only be used for cross compilation, use sysroot on Windows") 30