Skip to content

Commit 010d9a5

Browse files
authored
[NFC][SYCL] Fix test to properly pick up device libraries (#13913)
The sycl-offload-intelfpga.cpp test was recently modified to check that the proper device library objects are picked up. The test was not using the local testing sysroot to pick up the files, causing problems when the actual libraries are not built with the compiler before the test is run.
1 parent f7dc00d commit 010d9a5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clang/test/Driver/sycl-offload-intelfpga.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,11 @@
271271

272272
// When using -fintelfpga, we unbundle the device libraries instead of using
273273
// the LLVM-IR .bc files.
274-
// RUN: %clangxx -fintelfpga -ccc-print-phases %s 2>&1 \
274+
// RUN: %clangxx -fintelfpga -ccc-print-phases \
275+
// RUN: --sysroot=%S/Inputs/SYCL %s 2>&1 \
275276
// RUN: | FileCheck -check-prefix UNBUNDLE_DEVICELIB %s
276-
// RUN: %clangxx -fsycl -fsycl-targets=spir64_fpga -ccc-print-phases %s 2>&1 \
277+
// RUN: %clangxx -fsycl -fsycl-targets=spir64_fpga -ccc-print-phases \
278+
// RUN: --sysroot=%S/Inputs/SYCL %s 2>&1 \
277279
// RUN: | FileCheck -check-prefix UNBUNDLE_DEVICELIB %s
278280
// UNBUNDLE_DEVICELIB: [[#DEVLIB:]]: input, "{{.*}}libsycl-itt-user-wrappers{{.*}}", object
279281
// UNBUNDLE_DEVICELIB: [[#DEVLIB+1]]: clang-offload-unbundler, {[[#DEVLIB]]}, object

0 commit comments

Comments
 (0)