aboutsummaryrefslogblamecommitdiffstats
path: root/run.sh
blob: 0592a909ec0101d5432bb6d2305d408c074c2f51 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                
                                             
                                                                                                                                                                                                                                                                                                                               
                                   






                                   
#!/usr/bin/bash
cd $(dirname $0)
if [[ -d ./out ]]; then :;else mkdir ./out;fi
./luatablegen.py --tbg ./test/wasmtablegen.json --out ./out --luaheader /home/bloodstalker/devi/hell2/bruiser/lua-5.3.4/src --pre ./test/wasmheader.txt --headeraggr ./out/wasm_tables.h --lualibpath ./out/wasm.lua --docpath ./out/wasm.md --xml ./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