compiler-discord/docker/ocaml/run.sh

7 lines
151 B
Bash
Raw Normal View History

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