diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2022-01-06 23:04:26 +0000 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2022-01-06 23:04:26 +0000 |
commit | 6dac66008d2617d7eb4bd6efa09a2c7de47944b4 (patch) | |
tree | 6c8038e9857d8f6ce64e636009aa06d4ff8289e6 /compile | |
parent | 0da31e9f420e573621712420bf71eb1ca8f6d07f (diff) |
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...
Diffstat (limited to 'compile')
-rwxr-xr-x[-rw-r--r--] | compile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |