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 | |
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')
-rwxr-xr-x | compile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -21,7 +21,8 @@ cc() { } ld() { - clang -m32 -shared -O2 -flto -fpic -s -fuse-ld=lld -L.build -ldl -o sst.so$objs + clang -m32 -shared -O2 -flto -fpic -s -fuse-ld=lld -L.build -ldl -ltier0 \ + -lvstdlib -o sst.so$objs } src="\ @@ -45,7 +46,8 @@ clang -O2 -fuse-ld=lld $warnings -D_FILE_OFFSET_BITS=64 -o .build/mkgamedata \ .build/codegen `for s in $src; do echo "src/$s"; done` .build/mkgamedata gamedata/gamelib.kv gamedata/engine.kv for s in $src; do cc "$s"; done -clang -m32 -shared -fpic -fuse-ld=lld -O0 -w -o .build/libtier0.so src/tier0stub.c +clang -m32 -shared -fpic -fuse-ld=lld -O0 -w -o .build/libtier0.so src/stubs/tier0.c +clang -m32 -shared -fpic -fuse-ld=lld -O0 -w -o .build/libvstdlib.so src/stubs/vstdlib.c ld clang -fuse-ld=lld -O2 -g3 -include test/test.h -o .build/bitbuf.test test/bitbuf.test.c @@ -53,7 +55,7 @@ clang -fuse-ld=lld -O2 -g3 -include test/test.h -o .build/bitbuf.test test/bitbu # skipping this test on linux for now, since inline hooks aren't compiled in #clang -m32 -fuse-ld=lld -O2 -g3 -include test/test.h -o .build/hook.test test/hook.test.c #.build/hook.test -clang -fuse-ld=lld -O2 -g3 -include test/test.h -o .build/kv test/kv.test.c +clang -fuse-ld=lld -O2 -g3 -include test/test.h -o .build/kv.test test/kv.test.c .build/kv.test # vi: sw=4 tw=4 noet tw=80 cc=80 |