https://github.com/brooksdavis created https://github.com/llvm/llvm-project/pull/217004
FreeBSD also doesn't provide __emutls_get_address. >From 56b78d7601be1fc30a010ca35ebc8a7f4b8baced Mon Sep 17 00:00:00 2001 From: Brooks Davis <[email protected]> Date: Tue, 18 Aug 2026 13:05:33 +0100 Subject: [PATCH] Fix FreeBSD build after #207161 FreeBSD also doesn't provide __emutls_get_address. --- clang/lib/Interpreter/IncrementalExecutor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
