From 6bb06b117f805e4a3d621c24002f7620dde0097b Mon Sep 17 00:00:00 2001 From: George Thomas Date: Tue, 24 Mar 2026 11:22:41 +0000 Subject: [PATCH] Symlink static lib instead of copying This means we need to run the script much less often. --- generate-bindings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate-bindings b/generate-bindings index 39111ba..ca75c7a 100755 --- a/generate-bindings +++ b/generate-bindings @@ -2,4 +2,4 @@ set -euo pipefail # Place library in the location from which Cabal can bundle it. -cp rust/target/debug/libgarnet_rs.a $(cabal list-bin . | sed -e 's=x/garnet/build/garnet/garnet=build=g') +ln -sf $(pwd)/rust/target/debug/libgarnet_rs.a $(cabal list-bin . | sed -e 's=x/garnet/build/garnet/garnet=build=g')