summaryrefslogtreecommitdiff
path: root/bootstrap.bat
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2024-12-07 17:14:45 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2024-12-21 16:21:49 +0100
commitd2e7188e33a58cab05ef6292795303ad4b92a5f7 (patch)
treea6789fb724833d4d800626bf9b4707fa4ae1e9d8 /bootstrap.bat
parente166206702c8dbd3162452cf26f368e856ac0138 (diff)
WIPmsvc
Diffstat (limited to 'bootstrap.bat')
-rw-r--r--bootstrap.bat22
1 files changed, 22 insertions, 0 deletions
diff --git a/bootstrap.bat b/bootstrap.bat
new file mode 100644
index 0000000..7f236fc
--- /dev/null
+++ b/bootstrap.bat
@@ -0,0 +1,22 @@
+@echo off
+
+set CXX=cl.exe
+set CC=cl.exe
+set AR=lib.exe
+set LD=link.exe
+
+cl /nologo /std:c++20 /D_X86_ /EHsc /Isrc /Fo:build\ ctor.cc src\bootstrap.cc /link /out:ctor.exe
+if %errorlevel% neq 0 exit /b %errorlevel%
+
+ctor.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:ctor.exe
+if %errorlevel% neq 0 exit /b %errorlevel%
+
+ctor.exe configure --ctor-includedir=src --ctor-libdir=build
+if %errorlevel% neq 0 exit /b %errorlevel%