================ @@ -811,12 +811,22 @@ if(NOT LIBC_TARGET_OS_IS_BAREMETAL) ) endif() +set(exit_compile_options "") +if(TARGET libc.src.__support.threads.thread) ---------------- labath wrote: Done. https://github.com/llvm/llvm-project/pull/216081