diff options
Diffstat (limited to 'compile.bat')
-rw-r--r-- | compile.bat | 13 |
1 files changed, 13 insertions, 0 deletions
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
|