Skip to content

Commit c7289d0

Browse files
[SYCL] Pass /Zc:__cplusplus in -fsycl-host-compiler-options in some tests (#6751)
By default MSVC reports 199711L as the standard being used and needs that option to report C++ version properly. This fixes current post-commit failures on the tests modified.
1 parent c49d494 commit c7289d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sycl/test/regression/bit_cast_win.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsycl-host-compiler=cl -fsycl-host-compiler-options='/std:c++17' %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsycl-host-compiler=cl -fsycl-host-compiler-options='/std:c++17 /Zc:__cplusplus' %s -o %t.out
22
// UNSUPPORTED: linux
33

44
#include "bit_cast.hpp"

sycl/test/regression/fsycl-host-compiler-win.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cl -fsycl -fsycl-host-compiler=cl -DDEFINE_CHECK -fsycl-host-compiler-options="-DDEFINE_CHECK /std:c++17" /Fe%t1.exe %s
1+
// RUN: %clang_cl -fsycl -fsycl-host-compiler=cl -DDEFINE_CHECK -fsycl-host-compiler-options="-DDEFINE_CHECK /std:c++17 /Zc:__cplusplus" /Fe%t1.exe %s
22
// RUN: %RUN_ON_HOST %t1.exe
33
// REQUIRES: system-windows
44
//

0 commit comments

Comments
 (0)