mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
18 lines
419 B
Bash
Executable file
18 lines
419 B
Bash
Executable file
#!/bin/bash
|
|
set -Eeuo pipefail
|
|
|
|
cargo run qs.roc
|
|
gcc -shared qs.o -o libroc_qs_main.so
|
|
|
|
# Move it to a different place depending on Linux vs macOS
|
|
unameVal="$(uname -s)"
|
|
|
|
case "${unameVal}" in
|
|
Linux*) sudo mv libroc_qs_main.so /usr/lib/;;
|
|
Darwin*) sudo mv libroc_qs_main.so /usr/local/lib/;;
|
|
*) echo "build.sh does not support this operating system!" exit 1;
|
|
esac
|
|
|
|
rustc host.rs -o qs
|
|
|
|
./qs
|