Skip to content

Commit 3db71aa

Browse files
[SYCL][E2E] Fix SYCLBIN/link_mixed_opt_(input|object).cpp tests on Windows (#19694)
1 parent 131bfaa commit 3db71aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sycl/test-e2e/SYCLBIN/link_mixed_opt_input.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// once fixed.
1818
// REQUIRES: target-spir
1919

20-
// RUN: %clangxx --offload-new-driver -fsyclbin=input -fsycl-allow-device-image-dependencies -O0 %S/Inputs/exporting_function.cpp -o %t.export.syclbin
20+
// RUN: %clangxx --offload-new-driver -fsyclbin=input -fsycl-allow-device-image-dependencies %if cl_options %{/Od%} %else %{-O0%} %S/Inputs/exporting_function.cpp -o %t.export.syclbin
2121
// RUN: %clangxx --offload-new-driver -fsyclbin=input -fsycl-allow-device-image-dependencies -O1 %S/Inputs/importing_kernel.cpp -o %t.import.syclbin
2222
// RUN: %{build} -o %t.out
2323
// RUN: %{run} %t.out %t.export.syclbin %t.import.syclbin

sycl/test-e2e/SYCLBIN/link_mixed_opt_object.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// once fixed.
1818
// REQUIRES: target-spir
1919

20-
// RUN: %clangxx --offload-new-driver -fsyclbin=object -fsycl-allow-device-image-dependencies -O0 %S/Inputs/exporting_function.cpp -o %t.export.syclbin
20+
// RUN: %clangxx --offload-new-driver -fsyclbin=object -fsycl-allow-device-image-dependencies %if cl_options %{/Od%} %else %{-O0%} %S/Inputs/exporting_function.cpp -o %t.export.syclbin
2121
// RUN: %clangxx --offload-new-driver -fsyclbin=object -fsycl-allow-device-image-dependencies -O1 %S/Inputs/importing_kernel.cpp -o %t.import.syclbin
2222
// RUN: %{build} -o %t.out
2323
// RUN: %{run} %t.out %t.export.syclbin %t.import.syclbin

0 commit comments

Comments
 (0)