-
Notifications
You must be signed in to change notification settings - Fork 24
/
build.bat
17 lines (14 loc) · 864 Bytes
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@echo off
set BaseFile=termbench.cpp
set CLLinkFlags=-incremental:no -opt:ref -machine:x64 -manifest:no -subsystem:console kernel32.lib user32.lib
set CLCompileFlags=-Zi -d2Zi+ -Gy -GF -GR- -EHs- -EHc- -EHa- -WX -W4 -nologo -FC -Gm- -diagnostics:column -fp:except- -fp:fast
set CLANGCompileFlags=-g
set CLANGLinkFlags=-fuse-ld=lld -Wl,-subsystem:console,kernel32.lib,user32.lib
echo -----------------
echo Building debug:
call cl -Fetermbench_debug_msvc.exe -Od %CLCompileFlags% %BaseFile% /link %CLLinkFlags% -RELEASE
call clang++ %CLANGCompileFlags% %CLANGLinkFlags% %BaseFile% -o termbench_debug_clang.exe
echo -----------------
echo Building release:
call cl -Fetermbench_release_msvc.exe -Oi -Oxb2 -O2 %CLCompileFlags% %BaseFile% /link %CLLinkFlags% -RELEASE
call clang++ -O3 %CLANGCompileFlags% %CLANGLinkFlags% %BaseFile% -o termbench_release_clang.exe