diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-12-23 12:14:46 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-12-23 20:07:52 +0100 |
commit | 4aa3c169b0a716d56254dbda2ab2b90d1876e7ad (patch) | |
tree | d7de3a3dcc5919ffb2776446be5b7c881c83c2ca /bootstrap.bat | |
parent | 78c5477b3989d67169de2d05665adfb801caab23 (diff) |
WIP
Diffstat (limited to 'bootstrap.bat')
-rw-r--r-- | bootstrap.bat | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bootstrap.bat b/bootstrap.bat new file mode 100644 index 0000000..e6f031a --- /dev/null +++ b/bootstrap.bat @@ -0,0 +1,20 @@ +set CXX=cl.exe +set CC=cl.exe +set AR=lib.exe +set LD=link.exe + +cl /nologo /MT /std:c++20 /D_X86_ /EHsc /Isrc /Fo:build\ ctor.cc src\bootstrap.cc /link /out:snot.exe +if %errorlevel% neq 0 exit /b %errorlevel% + +snot.exe +if %errorlevel% neq 0 exit /b %errorlevel% + +cl /nologo /std:c++20 /D_X86_ /EHsc /Isrc /Fo:build\ ctor.cc /c +if %errorlevel% neq 0 exit /b %errorlevel% +cl /nologo /std:c++20 /D_X86_ /EHsc /Isrc /Fo:build\test\ test\ctor.cc /c +if %errorlevel% neq 0 exit /b %errorlevel% +link /nologo build\libctor.lib build\ctor.obj build\test\ctor.obj /subsystem:console /out:snot.exe +if %errorlevel% neq 0 exit /b %errorlevel% + +snot.exe configure --ctor-includedir=src --ctor-libdir=build +if %errorlevel% neq 0 exit /b %errorlevel% |