[llvm] 659da71 - gn build: Pass -fno-emulated-tls when targeting Android.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 17 17:28:54 PDT 2023
Author: Peter Collingbourne
Date: 2023-03-17T17:28:40-07:00
New Revision: 659da71a406080b72c3882c491627ae4028b5675
URL: https://github.com/llvm/llvm-project/commit/659da71a406080b72c3882c491627ae4028b5675
DIFF: https://github.com/llvm/llvm-project/commit/659da71a406080b72c3882c491627ae4028b5675.diff
LOG: gn build: Pass -fno-emulated-tls when targeting Android.
Matches the CMake build:
https://github.com/llvm/llvm-project/blob/93c1a5f3ddd41e0ec09f38ab0045bd5e92199fd5/compiler-rt/CMakeLists.txt#L343
(we always use API level 29).
Differential Revision: https://reviews.llvm.org/D146341
Added:
Modified:
llvm/utils/gn/build/toolchain/target_flags.gni
Removed:
################################################################################
diff --git a/llvm/utils/gn/build/toolchain/target_flags.gni b/llvm/utils/gn/build/toolchain/target_flags.gni
index 92da8774e935d..a8521feeee371 100644
--- a/llvm/utils/gn/build/toolchain/target_flags.gni
+++ b/llvm/utils/gn/build/toolchain/target_flags.gni
@@ -14,6 +14,7 @@ if (current_os == "android") {
"--target=$llvm_current_triple",
"--sysroot=$android_ndk_path/toolchains/llvm/prebuilt/linux-x86_64/sysroot",
"--gcc-toolchain=$android_ndk_path/toolchains/llvm/prebuilt/linux-x86_64",
+ "-fno-emulated-tls",
]
target_ldflags += [
"-static-libstdc++",
More information about the llvm-commits
mailing list