[clang] [compiler-rt] [Driver][SYCL] Add compile-time device library linking for SPIR-V targets (PR #196656)
Alexey Bader via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 27 13:54:52 PDT 2026
================
@@ -0,0 +1,19 @@
+// Tests that the SYCL toolchain links libclang_rt.builtins.bc for spirv64
+// via -mlink-builtin-bitcode, and that --no-offloadlib suppresses it.
+
+// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fsycl \
+// RUN: -resource-dir=%S/Inputs/spirv64-sycl %s 2>&1 \
----------------
bader wrote:
I think this is the only test which needs to use `-resource-dir=` option. All other updated Driver tests should rather prefer `--no-offloadlib` option.
https://github.com/llvm/llvm-project/pull/196656
More information about the cfe-commits
mailing list