summaryrefslogtreecommitdiffstats
path: root/llvm/utils/gn/build/toolchain/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/gn/build/toolchain/BUILD.gn')
-rw-r--r--llvm/utils/gn/build/toolchain/BUILD.gn3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/gn/build/toolchain/BUILD.gn b/llvm/utils/gn/build/toolchain/BUILD.gn
index 7a2e584c3a4..dd4d0f9ee83 100644
--- a/llvm/utils/gn/build/toolchain/BUILD.gn
+++ b/llvm/utils/gn/build/toolchain/BUILD.gn
@@ -153,6 +153,7 @@ unix_toolchain("unix") {
toolchain_args = {
current_os = host_os
+ current_cpu = host_cpu
}
}
@@ -171,6 +172,7 @@ if (android_ndk_path != "") {
toolchain_args = {
current_os = "android"
+ current_cpu = "arm64"
}
libcxx_path = "$android_ndk_path/sources/cxx-stl/llvm-libc++"
@@ -293,5 +295,6 @@ toolchain("win") {
toolchain_args = {
current_os = "win"
+ current_cpu = host_cpu
}
}
OpenPOWER on IntegriCloud