aboutsummaryrefslogtreecommitdiffstats
path: root/ltg.sh
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2019-08-13 16:13:11 +0000
committerbloodstalker <thabogre@gmail.com>2019-08-13 16:13:11 +0000
commita46c23d01d20eef63194ce6f8745afb130e9ba20 (patch)
tree30d9fe4b38a88c5b6bdbe96cf84a43b8d4d1f7d0 /ltg.sh
parentupdate (diff)
downloadfaultreiber-a46c23d01d20eef63194ce6f8745afb130e9ba20.tar.gz
faultreiber-a46c23d01d20eef63194ce6f8745afb130e9ba20.zip
added ltg as submodule to see why --lua switch breaks
Diffstat (limited to 'ltg.sh')
-rwxr-xr-xltg.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/ltg.sh b/ltg.sh
new file mode 100755
index 0000000..dc1e37c
--- /dev/null
+++ b/ltg.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/bash
+cd $(dirname $0)
+if [[ -d ./out ]]; then :;else mkdir ./out;fi
+./luatablegen/luatablegen.py --out ./out --luaheader ../test/lua --headeraggr ./out/wasm_tables.h --lualibpath ./out/wasm.lua --docpath ./out/wasm.md --xml ./luatablegen/test/luwasm.xml --tbldefs ./out/ --anon --name wasm --lualibname wasmextra
+clang-format ./out/*.c ./out/*.h -i
+for filename in ./out/*.c; do
+ gcc -c $filename > /dev/null 2>&1
+ if [[ $? != 0 ]]; then
+ echo $filename did not compile.
+ fi
+done
+rm *.o