roc/crates/cli/tests/platform-switching/rust-platform/build.sh
2024-12-22 15:15:26 +11:00

11 lines
278 B
Bash
Executable file

#!/usr/bin/env bash
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
set -euxo pipefail
# set the working directory to the directory of the script
cd "$(dirname "$0")"
cargo build -p rust-platform
cp ../../../target/debug/librustplatform.a ./libhost.a