[clang] [Driver][SYCL] Link libclang_rt.builtins.bc for spirv64 at compile time via getDeviceLibs (PR #218528)
Srividya Sundaram via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 23 15:02:29 PDT 2026
================
@@ -446,6 +446,11 @@ def warn_drv_fraw_string_literals_in_cxx11 : Warning<
def err_drv_libclc_not_found : Error<"no libclc library '%0' found in the clang resource directory">;
+def err_drv_no_compiler_rt_builtins_bc : Error<
+ "no compiler-rt builtins bitcode library '%0' found in the clang resource "
+ "directory; build compiler-rt with SPIR-V support or pass '--no-offloadlib' "
+ "to compile without it">;
----------------
srividya-sundaram wrote:
Done. merged into [err_drv_device_lib_not_found](https://github.com/llvm/llvm-project/blob/bcbe0355f616a137fca5372a64db5fbf8965ed24/clang/include/clang/Basic/DiagnosticDriverKinds.td#L447-L450), used for both libclc and the compiler-rt builtins.
The library is chosen with `%select`, following the `ROCm` example, so only the builtins message carries the --no-offloadlib hint.
https://github.com/llvm/llvm-project/pull/218528
More information about the cfe-commits
mailing list