From 52f0a49d87efe92d267be5958d1ccaddb34bda69 Mon Sep 17 00:00:00 2001 From: George Thomas Date: Tue, 24 Mar 2026 15:28:40 +0000 Subject: [PATCH] Fix build script to work correctly on clean checkout --- build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build b/build index fceb60f..a391211 100755 --- a/build +++ b/build @@ -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