aboutsummaryrefslogtreecommitdiffstats
path: root/v4cc
blob: 9f9255e2dc6de05a08a91d6abda15390dc6a7df4 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

me=$(dirname $0)
out=$(basename $1 .js).so
($me/v4 --compile "$1" | gcc -shared -xassembler -o "$out" -) && \
  (echo "compiled $out"; \
  echo "run with\n  ./v4 --aot $out")