From 6d433b7e579f63780d3eb231a6dcaefec6769bb2 Mon Sep 17 00:00:00 2001 From: "Elovikov, Andrei" Date: Fri, 9 Sep 2022 12:23:22 -0700 Subject: [PATCH] [SYCL] Pass /Zc:__cplusplus in -fsycl-host-compiler-options in some tests 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. --- sycl/test/regression/bit_cast_win.cpp | 2 +- sycl/test/regression/fsycl-host-compiler-win.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sycl/test/regression/bit_cast_win.cpp b/sycl/test/regression/bit_cast_win.cpp index 9dd8747a4e8a1..f535634b15522 100644 --- a/sycl/test/regression/bit_cast_win.cpp +++ b/sycl/test/regression/bit_cast_win.cpp @@ -1,4 +1,4 @@ -// RUN: %clangxx -fsycl -fsycl-host-compiler=cl -fsycl-host-compiler-options='/std:c++17' %s -o %t.out +// RUN: %clangxx -fsycl -fsycl-host-compiler=cl -fsycl-host-compiler-options='/std:c++17 /Zc:__cplusplus' %s -o %t.out // UNSUPPORTED: linux #include "bit_cast.hpp" diff --git a/sycl/test/regression/fsycl-host-compiler-win.cpp b/sycl/test/regression/fsycl-host-compiler-win.cpp index f119200941372..bf855f1899d93 100644 --- a/sycl/test/regression/fsycl-host-compiler-win.cpp +++ b/sycl/test/regression/fsycl-host-compiler-win.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cl -fsycl -fsycl-host-compiler=cl -DDEFINE_CHECK -fsycl-host-compiler-options="-DDEFINE_CHECK /std:c++17" /Fe%t1.exe %s +// 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 // RUN: %RUN_ON_HOST %t1.exe // REQUIRES: system-windows //