From c520b7d0be008a38f0d9272a8fc99a25aea678d3 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 21 Jun 2020 23:36:47 +0200 Subject: [PATCH] Enable Annex K for MSVS --- tests/Make-check-cl.bat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Make-check-cl.bat b/tests/Make-check-cl.bat index 78b3472f..c153802d 100644 --- a/tests/Make-check-cl.bat +++ b/tests/Make-check-cl.bat @@ -51,8 +51,10 @@ for %%f in (test-*.c) do ( REM Compile the test suite REM /Zc: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 Enable warnings and basic optimization + REM Inform M*LIB to use Annex K echo Compiling %%f - cl.exe /I.. /O2 /W3 /std:c++14 /Zc:__cplusplus /Zc:preprocessor test.cpp > %%f.log 2>&1 + cl.exe /I.. /O2 /W3 /std:c++14 /Zc:__cplusplus /Zc:preprocessor /D__STDC_WANT_LIB_EXT1__ test.cpp > %%f.log 2>&1 if ERRORLEVEL 1 ( echo *** BUILD ERROR for %%f *** >> %%f.log type %%f.log