From efd2491a3d19160d9cae2a094e7baa9f2d958196 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 26 Feb 2024 18:54:16 +0000 Subject: Implement initial version --- compile.bat | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 compile.bat (limited to 'compile.bat') diff --git a/compile.bat b/compile.bat new file mode 100644 index 0000000..3194e14 --- /dev/null +++ b/compile.bat @@ -0,0 +1,13 @@ +:: This file is dedicated to the public domain. +@echo off + +llvm-rc /nologo /r /fo tmp.res src/exe.rc +clang-cl -m32 -mno-sse -fuse-ld=lld -flto -O1 -GR- -GS- -Gs9999999 -EHa- -Oi ^ +-Fehl2.wrap.exe -W3 -Wpedantic -DWIN32_LEAN_AND_MEAN -DNOMINMAX ^ +src/injected.c src/wincrt.c src/wrap.c src/x86.c ^ +-link -nodefaultlib -subsystem:windows,6.0 -stack:0x10000,0x10000 -fixed:no ^ +-dynamicbase -Brepro ^ +kernel32.lib user32.lib tmp.res +del tmp.res & exit /b %errorlevel% + +:: vi: sw=4 ts=4 noet tw=80 cc=80 -- cgit v1.2.3