if (host_cpu == "x64") {
extra_values += [ "HOST_ARCH=x86_64" ]
+ } else if (host_cpu == "ppc64") {
+ extra_values += [ "HOST_ARCH=powerpc64le" ]
} else {
assert(false, "unimplemented host_cpu " + host_cpu)
}
crt_current_target_arch = "x86_64"
} else if (current_cpu == "arm64") {
crt_current_target_arch = "aarch64"
+} else if (current_cpu == "ppc64") {
+ crt_current_target_arch = "powerpc64le"
} else {
assert(false, "unimplemented current_cpu " + current_cpu)
}
extra_values += [ "HAVE_LIBZ=0" ] # Must be 0.
}
- if (current_cpu == "x64" || current_cpu == "arm64") {
+ if (current_cpu == "x64" || current_cpu == "arm64" ||
+ current_cpu == "ppc64") {
extra_values += [ "CMAKE_SIZEOF_VOID_P=8" ]
} else {
extra_values += [ "CMAKE_SIZEOF_VOID_P=4" ]
llvm_targets_to_build = [ "AArch64" ]
} else if (host_cpu == "arm") {
llvm_targets_to_build = [ "ARM" ]
- } else if (host_cpu == "pcc" || host_cpu == "pcc64") {
+ } else if (host_cpu == "ppc" || host_cpu == "ppc64") {
llvm_targets_to_build = [ "PowerPC" ]
} else if (host_cpu == "x86" || host_cpu == "x64") {
llvm_targets_to_build = [ "X86" ]
native_target = "AArch64"
} else if (host_cpu == "arm") {
native_target = "ARM"
-} else if (host_cpu == "pcc" || host_cpu == "pcc64") {
- native_target = [ "PowerPC" ]
+} else if (host_cpu == "ppc" || host_cpu == "ppc64") {
+ native_target = "PowerPC"
} else if (host_cpu == "x86" || host_cpu == "x64") {
native_target = "X86"
} else {
if (host_cpu == "x64") {
extra_values += [ "HOST_ARCH=x86_64" ]
+ } else if (host_cpu == "ppc64") {
+ extra_values += [ "HOST_ARCH=powerpc64le" ]
} else {
assert(false, "unimplemented host_cpu " + host_cpu)
}
if (current_os == "android") {
llvm_current_triple = "aarch64-linux-android21"
}
+} else if (current_cpu == "ppc64") {
+ if (current_os == "linux") {
+ llvm_current_triple = "powerpc64le-unknown-linux-gnu"
+ }
}
if (!defined(llvm_current_triple)) {