2019-02-20 13:22:21 +00:00
|
|
|
@echo OFF
|
|
|
|
|
2021-08-08 22:57:53 +00:00
|
|
|
set code_dir=%~dp0
|
2020-04-29 15:01:10 +00:00
|
|
|
if not exist ..\Build mkdir ..\Build
|
|
|
|
pushd ..\Build
|
2019-02-20 13:22:21 +00:00
|
|
|
|
2021-08-08 22:57:53 +00:00
|
|
|
REM MT Static CRT
|
|
|
|
REM EHa- Disable exception handling
|
|
|
|
REM GR- Disable C RTTI
|
|
|
|
REM O2 Optimisation Level 2
|
|
|
|
REM Oi Use CPU Intrinsics
|
|
|
|
REM Z7 Combine multi-debug files to one debug file
|
|
|
|
REM wd4201 Nonstandard extension used: nameless struct/union
|
|
|
|
REM Tp Treat header file as CPP source file
|
|
|
|
|
|
|
|
if not exist msvc mkdir msvc
|
|
|
|
if not exist clang mkdir clang
|
|
|
|
|
|
|
|
set flags=/MT /EHa /GR- /Od /Oi /Z7 /wd4201 /D DQN_TEST_WITH_MAIN %code_dir%Dqn_Tests.cpp /link /nologo
|
|
|
|
|
|
|
|
pushd msvc
|
|
|
|
cl %flags%
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd clang
|
|
|
|
clang-cl %flags%
|
|
|
|
popd
|
2019-02-20 13:22:21 +00:00
|
|
|
popd
|