Skip to content

Commit 3f33ee6

Browse files
committed
fixup: Avoid unnecessary rebuilding in build equivalency test
1 parent f846af1 commit 3f33ee6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ffi/test-build-equivalency.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
88
cd "$REPO_ROOT"
99

1010
# Define paths to libraries (relative to repo root)
11-
NIX_LIB="ffi/result/lib/libfirewood_ffi.a"
11+
NIX_LIB="ffi/result/lib/libfirewood_ffi.a" # Default path for the nix build
1212
CARGO_LIB="target/maxperf/libfirewood_ffi.a"
1313

1414
# Create temporary directory and ensure cleanup on exit
@@ -19,7 +19,7 @@ echo "Building with cargo (using nix dev shell)..."
1919
nix develop ./ffi#default --command bash -c "cargo fetch --locked --verbose && cargo build-static-ffi"
2020

2121
echo "Building with nix..."
22-
cd ffi && nix build .#firewood-ffi --rebuild && cd ..
22+
cd ffi && nix build .#firewood-ffi && cd ..
2323

2424
echo ""
2525
echo "=== File Size Comparison ==="

0 commit comments

Comments
 (0)