From 6dac66008d2617d7eb4bd6efa09a2c7de47944b4 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 6 Jan 2022 23:04:26 +0000 Subject: Fix build scripts and codegen on Linux SST itself doesn't build, but it's a start! Really interesting is the declaration after a switch label. That's of course invalid, but Clang on Windows never complained. I guess it's an MSVC extension, eh? How annoying. Also, haha yes the script wasn't even executable. Forgot to update-index when I remade the repo, I guess... --- compile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 compile (limited to 'compile') diff --git a/compile b/compile old mode 100644 new mode 100755 index 5fc508c..26aa925 --- a/compile +++ b/compile @@ -10,7 +10,7 @@ esac mkdir -p .build/include -warnings=-Wall -pedantic -Wno-parentheses -Wno-missing-braces +warnings="-Wall -pedantic -Wno-parentheses -Wno-missing-braces" objs= cc() { @@ -44,7 +44,7 @@ clang -O2 -fuse-ld=lld $warnings -D_FILE_OFFSET_BITS=64 -o .build/mkgamedata \ src/build/mkgamedata.c src/kv.c .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 +for s in $src; do cc "$s"; done clang -m32 -shared -fpic -fuse-ld=lld -O0 -w -o .build/libtier0.so src/tier0stub.c ld -- cgit v1.2.3