diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-09-18 15:54:34 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-09-20 21:18:39 +0200 |
commit | eb7c9f97959e4c074698eea72b7da20d25f19faa (patch) | |
tree | 2503b089bfc793685e6d972e49fded9699ba7648 /bootstrap.bat | |
parent | ecfc610acff6a9359ae5e7f0b225c5b26b189591 (diff) |
Initial support for compiling with msvc/cl.exe on windows.
Diffstat (limited to 'bootstrap.bat')
-rw-r--r-- | bootstrap.bat | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstrap.bat b/bootstrap.bat new file mode 100644 index 0000000..f394d56 --- /dev/null +++ b/bootstrap.bat @@ -0,0 +1,12 @@ +#!/bin/bash +set BASE="C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133" +set ONECORELIB=%BASE%\lib\onecore\x86 +set PATH=%PATH%;%BASE%\bin\Hostx86\x86 +set INCLUDE=%BASE%\include +set UCRT="C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt" +set UCRTLIB="C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\ucrt\x86" +set UM="C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um" +set UMLIB="C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x86" +set SHARED="C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared" +echo "Bootstrapping..." +cl.exe /std:c++20 /D_X86_ /EHsc /Isrc /I%BASE%\include /I%UCRT% /I%UM% /I%SHARED% /Iwingetopt/src wingetopt/src/getopt.c src/*.cc ctor.cc /link /LIBPATH:%UMLIB% /LIBPATH:%ONECORELIB% /LIBPATH:%UCRTLIB% /OUT:ctor.exe |