File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ setlocal
2+
3+ set RELEASE_VERSION = 20261026
4+
5+ set JOBS = 8
6+ set SCONS = python3 -m SCons
7+ set ZIP7 = " C:\Program Files\7-Zip\7z"
8+ set SAIGO_DIR = toolchain\saigosdk-windows-amd64_20260925
9+
10+ :: Must set MSYS_DIR on command line. The MinGW distro doesn't really have to be MSYS
11+ :: but this makes it more convenient to set just one variable.
12+ set MINGW_AMD64 = " %MSYS_DIR% \mingw64"
13+ set MINGW_I686 = " %MSYS_DIR% \mingw32"
14+
15+ %MINGW_AMD64% \bin\as --version
16+ %MINGW_I686% \bin\as --version
17+ %SCONS% --version
18+ %ZIP7%
19+
20+ rd /S /Q scons-out release
21+
22+ git log -1
23+ git status
24+
25+ %SCONS% -j%JOBS% --verbose --mode=opt-win,nacl_irt saigo_newlib_dir=%SAIGO_DIR% mingw_dir=%MINGW_AMD64% platform=x86-64 saigo=1 --no-clang werror=0 sysinfo=0 sel_ldr irt_core || exit /B
26+ %SCONS% -j%JOBS% --verbose --mode=opt-win,nacl_irt saigo_newlib_dir=%SAIGO_DIR% mingw_dir=%MINGW_I686% platform=x86-32 saigo=1 --no-clang werror=0 sysinfo=0 sel_ldr irt_core || exit /B
27+
28+ mkdir release
29+ cd release
30+
31+ set TGT64 = nacl_runtime-windows-amd64-%RELEASE_VERSION%
32+ set TGT32 = nacl_runtime-windows-i686-%RELEASE_VERSION%
33+ mkdir %TGT64%
34+ mkdir %TGT32%
35+ copy ..\scons-out\opt-win-x86-64\staging\sel_ldr.exe %TGT64%
36+ copy ..\scons-out\opt-win-x86-32\staging\sel_ldr.exe %TGT32%
37+ copy ..\scons-out\nacl_irt-x86-64\staging\irt_core.nexe %TGT64%
38+ copy ..\scons-out\nacl_irt-x86-32\staging\irt_core.nexe %TGT32%
39+ %ZIP7% a -tzip -mx=9 %TGT64% .zip %TGT64% || exit /B
40+ %ZIP7% a -tzip -mx=9 %TGT32% .zip %TGT32% || exit /B
You can’t perform that action at this time.
0 commit comments