compiler-discord/docker/ocaml/run.sh
2019-06-01 01:04:15 -04:00

6 lines
151 B
Bash

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