Skip to content

Commit 79bb5e8

Browse files
authored
Merge pull request #233 from roc-lang/jump-start-build-target
target in jump-start.sh
2 parents 15840fc + e0e5937 commit 79bb5e8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jump-start.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ $ROC glue glue.roc crates ./platform/main.roc
2222

2323
cargo build --release
2424

25-
cp target/release/libhost.a ./platform/libhost.a
25+
if [ -n "$CARGO_BUILD_TARGET" ]; then
26+
cp target/$CARGO_BUILD_TARGET/release/libhost.a ./platform/libhost.a
27+
else
28+
cp target/release/libhost.a ./platform/libhost.a
29+
fi
2630

2731
$ROC build --linker=legacy build.roc

0 commit comments

Comments
 (0)