mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
13 lines
222 B
Bash
Executable file
13 lines
222 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -euxo pipefail
|
|
|
|
# Clear out any existing output files
|
|
rm -rf ./out
|
|
mkdir ./out
|
|
|
|
# Regenerate the .bc file
|
|
clang -emit-llvm -o out/lib.bc -c src/lib.c
|
|
|
|
# Copy bc file for it to be used
|
|
cp ./out/lib.bc "$1"
|