Skip to content

Commit b8a0742

Browse files
authored
[SYCL] Use clang options in E2E test to recognize -std=c++20 (#16974)
Use the `%cxx_std_option` LIT substitution to make sure the cpp standard flag is handled correctly by the compiler in both Linux/Windows.
1 parent d4e22a7 commit b8a0742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/test-e2e/DeviceImageBackendContent/basic_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %{build} -std=c++20 -o %t.out
1+
// RUN: %{build} %cxx_std_optionc++20 -o %t.out
22
// RUN: %{run} %t.out
33

44
#include <sycl/detail/core.hpp>

0 commit comments

Comments
 (0)