Skip to content

Commit fd898e7

Browse files
authored
[Driver][NFC] Fix test to not check for libspirv library (#20709)
Under certain testing conditions, the nvptx and amdgcn based libspirv libraries are not generated, causing a failure in the driver test sycl-offload-new-driver.c. Update the test to not depend on these libraries as they are not important for the test. Test fails with: clang: error: cannot find 'remangled-l64-signed_char.libspirv-nvptx64-nvidia-cuda.bc'; provide path to libspirv library via '-fsycl-libspirv-path', or pass '-fno-sycl-libspirv' to build without linking with libspirv Test updated to use `-fno-sycl-libspirv` to prevent the inclusion of the libs.
1 parent 7f72a3f commit fd898e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/Driver/sycl-offload-new-driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237

238238
// Verify for multiple targets with -Xsycl-target-backend= with commas in the values
239239
// are passed correctly to llvm-offload-binary.
240-
// RUN: %clangxx -fsycl -### --offload-new-driver \
240+
// RUN: %clangxx -fsycl -### --offload-new-driver -fno-sycl-libspirv \
241241
// RUN: -fsycl-targets=nvptx64-nvidia-cuda,amdgcn-amd-amdhsa,spir64_gen \
242242
// RUN: -Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=gfx908,gfx1010 \
243243
// RUN: -Xsycl-target-backend=nvptx64-nvidia-cuda --offload-arch=sm_86,sm_87,sm_89 \

0 commit comments

Comments
 (0)