Try workaround against regression with new VisualC++

This commit is contained in:
Patrick Pelissier committed 2020-03-26 22:03:11 +01:00
1 parent 11f84ab34b
commit 39f8b6828b
1 file changed
+2 -1
+2 -1
View File
@@ -23,8 +23,9 @@ for %%f in (test-*.c) do (
REM Compile the test suite
REM /experimental:preprocessor is mandatory to have a compliant preprocessor
REM /Zc:__cplusplus is needed to report the real value of __cplusplus, so that M*LIB uses the C++ atomic, and not its emulation.
REM Some issue with wrong (?) reported issues W4002
echo Compiling %%f
cl.exe /I.. /O2 /std:c++14 /Zc:__cplusplus /experimental:preprocessor test.cpp > %%f.log 2>&1
cl.exe /I.. /O2 /std:c++14 /Zc:__cplusplus /experimental:preprocessor /Wd4002 test.cpp > %%f.log 2>&1
if ERRORLEVEL 1 (
echo *** BUILD ERROR for %%f *** >> %%f.log
type %%f.log