blob: e1c045f625c62efe3c21d72aee64183a15b8fa84 [file] [log] [blame]
import("//llvm/triples.gni")
import("//llvm/utils/gn/build/toolchain/compiler.gni")
target_flags = []
target_ldflags = []
if (current_os == "android") {
target_flags += [
"--target=$llvm_current_triple",
"--sysroot=$android_ndk_path/toolchains/llvm/prebuilt/linux-x86_64/sysroot",
"-B$android_ndk_path/toolchains/llvm/prebuilt/linux-x86_64",
]
target_ldflags += [ "-static-libstdc++" ]
}
if (current_cpu == "x86") {
target_flags = [ "-m32" ]
}