forked from LeelaChessZero/lc0
-
Notifications
You must be signed in to change notification settings - Fork 10
/
build_rescorer.cmd
35 lines (27 loc) · 1019 Bytes
/
build_rescorer.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
setlocal
echo Deleting build directory:
rd /s build
set CC=cl
set CXX=cl
set CC_LD=link
set CXX_LD=link
if exist "D:\IDE\Microsoft Visual Studio\2022" (
where /q cl
if errorlevel 1 call "D:\IDE\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
set backend=vs2022
) else if exist "C:\Program Files (x86)\Microsoft Visual Studio\2019" (
where /q cl
if errorlevel 1 call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
set backend=vs2019
) else (
where /q cl
if errorlevel 1 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
set backend=vs2017
)
meson build --backend %backend% --buildtype release -Drescorer=true -Dlc0=false -Dgtest=false -Ddefault_library=static
if errorlevel 1 exit /b
pause
cd build
msbuild /m /p:Configuration=Release /p:Platform=x64 /p:WholeProgramOptimization=true ^
/p:PreferredToolArchitecture=x64 lc0.sln /filelogger