[llvm] [Bazel] Define BUILTIN_THREAD_POINTER where appropriate on x86-64 linux (PR #74574)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 13 15:54:42 PST 2023
================
@@ -94,7 +94,10 @@ llvm_config_defines = os_defines + select({
"@bazel_tools//src/conditions:linux_aarch64": native_arch_defines("AArch64", "aarch64-unknown-linux-gnu"),
"@bazel_tools//src/conditions:linux_ppc64le": native_arch_defines("PowerPC", "powerpc64le-unknown-linux-gnu"),
"@bazel_tools//src/conditions:linux_s390x": native_arch_defines("SystemZ", "systemz-unknown-linux_gnu"),
- "//conditions:default": native_arch_defines("X86", "x86_64-unknown-linux-gnu"),
----------------
MaskRay wrote:
We can define HAVE_BUILTIN_THREAD_POINTER for all targets except `powerpc64le-linux-gnu-gcc`.
`clang --target=powerpc64le` supports `__builtin_thread_pointer`
https://github.com/llvm/llvm-project/pull/74574
More information about the llvm-commits
mailing list