blob: 02dfeda9d62f61a2792959d98dce97e08e59d669 [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 == "arm") {
target_flags += [ "-march=armv7-a" ]
}
}
if (current_cpu == "x86") {
target_flags = [ "-m32" ]
}