From 4ed68f73dae9e7621d7d7512b5feb686e9440bb2 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 6 Jan 2022 23:39:21 +0000 Subject: 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. --- compile.bat | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'compile.bat') 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 -- cgit v1.2.3