Enable warnings for MSVS
This commit is contained in:
1 parent
1edb204ec6
commit
bf49b8e933
1 file changed
+2
-2
@@ -35,7 +35,7 @@ DEL *.log *.dat
|
|||||||
|
|
||||||
REM List the expected failure (compiler internal error)
|
REM List the expected failure (compiler internal error)
|
||||||
set "expectedFailure1=test-msnapshot.c"
|
set "expectedFailure1=test-msnapshot.c"
|
||||||
set "expectedFailure2=test-mtuple.c"
|
set "expectedFailure2=test-none.c"
|
||||||
|
|
||||||
echo "Compiler full version:"
|
echo "Compiler full version:"
|
||||||
cl /Bv
|
cl /Bv
|
||||||
@@ -52,7 +52,7 @@ for %%f in (test-*.c) do (
|
|||||||
REM /Zc:preprocessor is mandatory to have a compliant preprocessor
|
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 /Zc:__cplusplus is needed to report the real value of __cplusplus, so that M*LIB uses the C++ atomic, and not its emulation.
|
||||||
echo Compiling %%f
|
echo Compiling %%f
|
||||||
cl.exe /I.. /O2 /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 test.cpp > %%f.log 2>&1
|
||||||
if ERRORLEVEL 1 (
|
if ERRORLEVEL 1 (
|
||||||
echo *** BUILD ERROR for %%f *** >> %%f.log
|
echo *** BUILD ERROR for %%f *** >> %%f.log
|
||||||
type %%f.log
|
type %%f.log
|
||||||
|
|||||||
Reference in new issue
Block a user