Skip to content

Commit 3ef8c82

Browse files
authored
[SYCL][NFC] Update sycl-instrumentation.c test to use local sysroot (#4798)
Use the local testing SYCL root for finding the libsycl-itt device objects, as not all builds will be creating the objects for the test to properly pass.
1 parent c70a950 commit 3ef8c82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/Driver/sycl-instrumentation.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
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 -fsycl-targets=spir64 -### %s 2>&1 \
7+
// RUN: %clangxx -fsycl -fsycl-instrument-device-code --sysroot=%S/Inputs/SYCL -fsycl-targets=spir64 -### %s 2>&1 \
88
// RUN: | FileCheck -check-prefixes=CHECK-SPIRV,CHECK-HOST %s
99
/// -fno-sycl-device-lib mustn't affect the linkage of ITT libraries
10-
// RUN: %clangxx -fsycl -fsycl-instrument-device-code -fno-sycl-device-lib=all -fsycl-targets=spir64 -### %s 2>&1 \
10+
// RUN: %clangxx -fsycl -fsycl-instrument-device-code --sysroot=%S/Inputs/SYCL -fno-sycl-device-lib=all -fsycl-targets=spir64 -### %s 2>&1 \
1111
// RUN: | FileCheck -check-prefixes=CHECK-SPIRV %s
1212

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

0 commit comments

Comments
 (0)