Skip to content

Commit

Permalink
[E2E] Fix no_zstd_warning.cpp when built with clang-cl (#16002)
Browse files Browse the repository at this point in the history
Currently, when this test is built with a compiler that accepts
MSVC-style flags, compilation fails because `-O0` is unrecognized. This
PR updates the test to replace `-O0` with `%O0`.
Internal bug report: CMPLRTST-26037
  • Loading branch information
uditagarwal97 authored Nov 6, 2024
1 parent dc181bb commit e7e3b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sycl/test-e2e/Compression/no_zstd_warning.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// using --offload-compress without zstd should throw an error.
// REQUIRES: !zstd
// RUN: not %{build} -O0 -g --offload-compress %S/Inputs/single_kernel.cpp -o %t_compress.out 2>&1 | FileCheck %s
// RUN: not %{build} %O0 -g --offload-compress %S/Inputs/single_kernel.cpp -o %t_compress.out 2>&1 | FileCheck %s
// CHECK: '--offload-compress' option is specified but zstd is not available. The device image will not be compressed.

0 comments on commit e7e3b96

Please sign in to comment.