Fix build script to work correctly on clean checkout
This commit is contained in:
parent
df1f73eb8a
commit
52f0a49d87
6
build
6
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user