File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 17
17
// once fixed.
18
18
// REQUIRES: target-spir
19
19
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
21
21
// RUN: %clangxx --offload-new-driver -fsyclbin=input -fsycl-allow-device-image-dependencies -O1 %S/Inputs/importing_kernel.cpp -o %t.import.syclbin
22
22
// RUN: %{build} -o %t.out
23
23
// RUN: %{run} %t.out %t.export.syclbin %t.import.syclbin
Original file line number Diff line number Diff line change 17
17
// once fixed.
18
18
// REQUIRES: target-spir
19
19
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
21
21
// RUN: %clangxx --offload-new-driver -fsyclbin=object -fsycl-allow-device-image-dependencies -O1 %S/Inputs/importing_kernel.cpp -o %t.import.syclbin
22
22
// RUN: %{build} -o %t.out
23
23
// RUN: %{run} %t.out %t.export.syclbin %t.import.syclbin
You can’t perform that action at this time.
0 commit comments