1 if (current_cpu == "x86") {
2 if (current_os == "linux") {
3 llvm_current_triple = "i386-unknown-linux-gnu"
5 } else if (current_cpu == "x64") {
6 if (current_os == "freebsd") {
7 llvm_current_triple = "x86_64-unknown-freebsd"
8 } else if (current_os == "linux") {
9 llvm_current_triple = "x86_64-unknown-linux-gnu"
10 } else if (current_os == "mac") {
11 llvm_current_triple = "x86_64-apple-darwin"
12 } else if (current_os == "win") {
13 llvm_current_triple = "x86_64-pc-windows"
15 } else if (current_cpu == "arm64") {
16 if (current_os == "android") {
17 llvm_current_triple = "aarch64-linux-android21"
19 } else if (current_cpu == "ppc64") {
20 if (current_os == "linux") {
21 llvm_current_triple = "powerpc64le-unknown-linux-gnu"
25 if (!defined(llvm_current_triple)) {
26 assert(false, "unimplemented cpu/os " + current_cpu + "/" + current_os)
30 # The default target triple.
31 llvm_target_triple = llvm_current_triple