[clang] Fix FreeBSD build after #207161 (PR #217004)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 18 05:13:37 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Brooks Davis (brooksdavis)
<details>
<summary>Changes</summary>
FreeBSD also doesn't provide __emutls_get_address.
---
Full diff: https://github.com/llvm/llvm-project/pull/217004.diff
1 Files Affected:
- (modified) clang/lib/Interpreter/IncrementalExecutor.cpp (+1-1)
``````````diff
diff --git a/clang/lib/Interpreter/IncrementalExecutor.cpp b/clang/lib/Interpreter/IncrementalExecutor.cpp
index 001a7ecb102b7..6d337e7848699 100644
--- a/clang/lib/Interpreter/IncrementalExecutor.cpp
+++ b/clang/lib/Interpreter/IncrementalExecutor.cpp
@@ -76,7 +76,7 @@
// and AIX / z/OS (whose runtimes may not provide the symbol). On those hosts
// thread_locals instead rely on process-symbol lookup, unchanged from before.
#if defined(LLVM_ON_UNIX) && !defined(__EMSCRIPTEN__) && !defined(_AIX) && \
- !defined(__MVS__)
+ !defined(__MVS__) && !defined(__FreeBSD__)
extern "C" void *__emutls_get_address(void *);
static void *getEmuTLSGetAddressPtr() {
return reinterpret_cast<void *>(&__emutls_get_address);
``````````
</details>
https://github.com/llvm/llvm-project/pull/217004
More information about the cfe-commits
mailing list