From a46c23d01d20eef63194ce6f8745afb130e9ba20 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Tue, 13 Aug 2019 20:43:11 +0430 Subject: added ltg as submodule to see why --lua switch breaks --- ltg.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 ltg.sh (limited to 'ltg.sh') 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 -- cgit v1.2.3