aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/autogen/wasm/ltg.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbruiser/autogen/wasm/ltg.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/bruiser/autogen/wasm/ltg.sh b/bruiser/autogen/wasm/ltg.sh
new file mode 100755
index 0000000..94f052b
--- /dev/null
+++ b/bruiser/autogen/wasm/ltg.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/bash
+cd $(dirname $0)
+"../../tablegen/luatablegen.py" --out ./ltg/ --luaheader ../../../lua-5.3.4/src --headeraggr ./ltg/wasm_tables.h --lualibpath ./ltg/wasm.lua --docpath ./ltg/wasm.md --xml ./ltg/wasm.xml --tbldefs ./ltg/
+clang-format ./ltg/*.c ./ltg/*.h -i
+for filename in ./ltg/*.c; do
+ gcc -c $filename > /dev/null 2>&1
+ if [[ $? != 0 ]]; then
+ echo $filename did not compile.
+ fi
+done
+rm *.o