diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2022-01-06 23:39:21 +0000 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2022-01-06 23:39:21 +0000 |
commit | 4ed68f73dae9e7621d7d7512b5feb686e9440bb2 (patch) | |
tree | 9646293b25a5a49b517d776baccce7ddff52a293 /compile.bat | |
parent | c3ecdf5caf17825b047e4d8b5d979986cbe380b0 (diff) |
Tidy up stubs, make vstdlib a stub, build on Linux
Important note: it doesn't WORK on Linux, and there's tons of warnings
and stuff, but it's easier to work on when all the compiler output and
whatnot is there.
Diffstat (limited to 'compile.bat')
-rw-r--r-- | compile.bat | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compile.bat b/compile.bat index 60b4973..3db7d1a 100644 --- a/compile.bat +++ b/compile.bat @@ -34,7 +34,8 @@ clang -E -xc src/dll.rc>.build\dll.pp.rc || exit /b llvm-rc /FO .build\dll.res .build\dll.pp.rc || exit /b
:: might as well remove the temp file afterwards
del .build\dll.pp.rc
-clang -m32 -shared -fuse-ld=lld -O0 -w -o .build/tier0.dll src/tier0stub.c
+clang -m32 -shared -fuse-ld=lld -O0 -w -o .build/tier0.dll src/stubs/tier0.c
+clang -m32 -shared -fuse-ld=lld -O0 -w -o .build/vstdlib.dll src/stubs/vstdlib.c
call :cc src/autojump.c || exit /b
call :cc src/con_.c || exit /b
call :cc src/demorec.c || exit /b
@@ -48,7 +49,7 @@ call :cc src/kv.c || exit /b call :cc src/sst.c || exit /b
call :cc src/udis86.c || exit /b
clang -m32 -shared -O2 -flto -fuse-ld=lld -Wl,/implib:.build/sst.lib,/Brepro ^
--L.build -ladvapi32 -ltier0 -lshlwapi -o sst.dll%objs% .build/dll.res || exit /b
+-L.build -ladvapi32 -lshlwapi -ltier0 -lvstdlib -o sst.dll%objs% .build/dll.res || exit /b
:: get rid of another useless file (can we just not create this???)
del .build\sst.lib
|