compiler-discord/docker/ocaml/run.sh

6 lines
140 B
Bash

mkdir "$COUNT" && cd "$COUNT"
echo "$1" > program.ml
ocamlopt -cclib --static -o program program.ml && ./program
cd .. && rm -rf "$COUNT"