Fix build script to work correctly on clean checkout

This commit is contained in:
George Thomas 2026-03-24 15:28:40 +00:00
parent df1f73eb8a
commit 52f0a49d87

6
build
View File

@ -2,5 +2,9 @@
set -euo pipefail
cargo build --manifest-path ./rust/Cargo.toml
ln -sf $(pwd)/rust/target/debug/libgarnet_rs.a $(cabal list-bin . | sed -e 's=x/garnet/build/garnet/garnet=build=g')
BUNDLED_LIB_DIR=$(cabal list-bin . | sed -e 's=x/garnet/build/garnet/garnet=build=g')
mkdir -p $BUNDLED_LIB_DIR
ln -sf $(pwd)/rust/target/debug/libgarnet_rs.a $BUNDLED_LIB_DIR
cabal build