diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2024-02-26 18:54:16 +0000 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2024-02-26 18:54:16 +0000 |
commit | efd2491a3d19160d9cae2a094e7baa9f2d958196 (patch) | |
tree | 1cbcae136679bc1411c3758c1252ffdc67d7d12b /compile.bat |
Implement initial versionv1.0
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
|