[compiler-rt] [compiler-rt][profile] Use runtimes-libc-headers in the GPU runtimes build (PR #192814)

Yaxun Liu via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 21 07:41:04 PDT 2026


================
@@ -186,6 +186,18 @@ append_list_if(COMPILER_RT_HAS_WD4221_FLAG /wd4221 EXTRA_FLAGS)
 # Disable 'nonstandard extension used: translation unit is empty'.
 append_list_if(COMPILER_RT_HAS_WD4206_FLAG /wd4206 EXTRA_FLAGS)
 
+# In the GPU runtimes build, link `runtimes-libc-headers` for its
+# `-isystem` include dir and for waiting on header generation.
+set(PROFILE_LINK_LIBS)
+if(LLVM_RUNTIMES_BUILD)
+  list(APPEND CMAKE_MODULE_PATH
+       "${CMAKE_CURRENT_SOURCE_DIR}/../../../runtimes/cmake/Modules")
+  include(HandleLibC)
----------------
yxsamliu wrote:

done

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


More information about the llvm-commits mailing list