[lit] Improve lit.Run class
[llvm-complete.git] / utils / gn / build / toolchain / target_flags.gni
blobe1c045f625c62efe3c21d72aee64183a15b8fa84
1 import("//llvm/triples.gni")
2 import("//llvm/utils/gn/build/toolchain/compiler.gni")
4 target_flags = []
5 target_ldflags = []
7 if (current_os == "android") {
8   target_flags += [
9     "--target=$llvm_current_triple",
10     "--sysroot=$android_ndk_path/toolchains/llvm/prebuilt/linux-x86_64/sysroot",
11     "-B$android_ndk_path/toolchains/llvm/prebuilt/linux-x86_64",
12   ]
13   target_ldflags += [ "-static-libstdc++" ]
16 if (current_cpu == "x86") {
17   target_flags = [ "-m32" ]