summaryrefslogtreecommitdiffstats
path: root/llvm/utils/gn/build/toolchain/target_flags.gni
blob: e1c045f625c62efe3c21d72aee64183a15b8fa84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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" ]
}
OpenPOWER on IntegriCloud