llvm
3bdbef60 - [SYCL][test] Add --no-offloadlib and fno-sycl-instrument-device-code to spir/spirv target RUN lines in clang-linker-wrapper test (#22049)

Commit
61 days ago
[SYCL][test] Add --no-offloadlib and fno-sycl-instrument-device-code to spir/spirv target RUN lines in clang-linker-wrapper test (#22049) After PR [#21672](https://github.com/intel/llvm/pull/21672/changes), SYCL device libraries are linked at compile time when using --offload-new-driver with SPIR/SPIRV targets. The compile RUN lines in clang-linker-wrapper.cpp that use SPIR-based targets now require the device libraries to be resolvable on disk. In environments where the device libraries are not installed alongside the compiler (e.g. MSan self builds), these RUN lines fail with "cannot find expected SYCL device library" errors. Fix by adding --sysroot=%S/Inputs/SYCL to the affected compile RUN lines so the stub .bc files in the test inputs directory are used for path resolution. This is sufficient since these are driver tests that check command line arguments, not actual compilation output. --------- Signed-off-by: jinge90 <ge.jin@intel.com> Co-authored-by: jinge90 <ge.jin@intel.com>
Parents
Loading