From 15e2bd35a8da320f074942e814885f3d6eaf0706 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 23 Dec 2024 12:14:46 +0100 Subject: WIP --- bootstrap.bat | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 bootstrap.bat (limited to 'bootstrap.bat') diff --git a/bootstrap.bat b/bootstrap.bat new file mode 100644 index 0000000..2493eb6 --- /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 + +%CXX% /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% + +%CXX% /nologo /std:c++20 /D_X86_ /EHsc /Isrc /Fo:build\ ctor.cc /c +@if %errorlevel% neq 0 exit /b %errorlevel% +%CXX% /nologo /std:c++20 /D_X86_ /EHsc /Isrc /Fo:build\test\ test\ctor.cc /c +@if %errorlevel% neq 0 exit /b %errorlevel% +%LD% /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% -- cgit v1.2.3