Skip to content

Commit f5948f2

Browse files
authored
[SYCL][NFC] Improve sycl-instrumentation test for Windows (#4869)
Adjust test to work better in Windows type environments by forcing the target to be Linux. This allows the dummy device libs to be found.
1 parent 455dce8 commit f5948f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clang/test/Driver/sycl-instrumentation.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
/// 1. A SPIR-V-based environment must be targetted
55
/// 2. The corresponding Driver option must be enabled explicitly
66

7-
// RUN: %clangxx -fsycl -fsycl-instrument-device-code --sysroot=%S/Inputs/SYCL -fsycl-targets=spir64 -### %s 2>&1 \
7+
/// FIXME: Force linux targets to allow for the libraries to be found. Dummy
8+
/// inputs for --sysroot should be updated to work better for Windows.
9+
// RUN: %clangxx -target x86_64-unknown-linux-gnu -fsycl -fsycl-instrument-device-code --sysroot=%S/Inputs/SYCL -fsycl-targets=spir64 -### %s 2>&1 \
810
// RUN: | FileCheck -check-prefixes=CHECK-SPIRV,CHECK-HOST %s
911
/// -fno-sycl-device-lib mustn't affect the linkage of ITT libraries
10-
// RUN: %clangxx -fsycl -fsycl-instrument-device-code --sysroot=%S/Inputs/SYCL -fno-sycl-device-lib=all -fsycl-targets=spir64 -### %s 2>&1 \
12+
// RUN: %clangxx -target x86_64-unknown-linux-gnu -fsycl -fsycl-instrument-device-code --sysroot=%S/Inputs/SYCL -fno-sycl-device-lib=all -fsycl-targets=spir64 -### %s 2>&1 \
1113
// RUN: | FileCheck -check-prefixes=CHECK-SPIRV %s
1214

1315
// CHECK-SPIRV: "-cc1"{{.*}} "-fsycl-is-device"{{.*}} "-fsycl-instrument-device-code"

0 commit comments

Comments
 (0)