aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/autogen/wasm/ltg.sh
blob: 3014c00425bb57a66931ea75bf22a599676ed61b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
cd $(dirname $0)
"../../tablegen/luatablegen.py" --out ./ltg/ --luaheader ../../../lua-5.3.4/src --headeraggr ./ltg/wasm_tables.h --lualibpath ../../lua-scripts/wasmextra.lua --docpath ./ltg/wasm.md --xml ./wasm.xml --tbldefs ./ltg/ --name wasm --anon --lualibname wasmextra
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