[clang] [llvm] Reland "[ORC] Track __emutls_t definitions in IRMaterializationUnit" (#207161) (PR #209717)

Vassil Vassilev via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 18 05:02:20 PDT 2026


vgvassilev wrote:

> This broke the build on FreeBSD where __emutls_get_address is not provided. This seems sufficient to fix the build:
> 
> ```
> --- clang/lib/Interpreter/IncrementalExecutor.cpp.orig
> +++ 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);
> ```
> 
> Whatever tool did the line wrapping of the commit message is appalling. It's basically unreadable. :(

Sorry about that. I noticed the formatting but I thought it was only on my end. Do you mind committing that fix of yours?

https://github.com/llvm/llvm-project/pull/209717


More information about the cfe-commits mailing list