1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/utils/gn/build/toolchain/compiler.gni
Peter Collingbourne 89bc32b405 gn build: Bump Android API level to 29, and NDK to r21.
These are both necessary in order to use ELF TLS, which is needed
by the scudo unit tests.

Differential Revision: https://reviews.llvm.org/D71079
2019-12-05 18:12:36 -08:00

26 lines
993 B
Plaintext

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