compiler-discord/docker/ocaml/run.sh

7 lines
159 B
Bash
Raw Normal View History

mkdir "$CODEDIR" && cd "$CODEDIR"
printf %s "$1" > program.ml
ocamlopt -cclib --static -o program program.ml && ./program || true
cd .. && rm -rf "$CODEDIR"