Enable Annex K for MSVS
This commit is contained in:
1 parent
4f4605befb
commit
c520b7d0be
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user