compiler-discord/docker/ocaml/run.sh

7 lines
146 B
Bash
Raw Normal View History

mkdir "$CODEDIR" && cd "$CODEDIR"
2019-03-16 02:43:40 +01:00
echo "$1" > program.ml
ocamlopt -cclib --static -o program program.ml && ./program
cd .. && rm -rf "$CODEDIR"