Handle Hardcoded Path Conflicts

Nucleic-Session: 1097CEC4-A18A-4474-967A-80B333C5493A
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-08 04:55:58 -07:00
co-authored by nucleic
parent 28772ea59f
commit 053d08be6a
+7 -2
View File
@@ -65,9 +65,14 @@ fi
# ── Step 1: build + ad-hoc-codesign the spike ────────────────────────────────────────────────────
# Ad-hoc signing (`--sign -`) is enough for com.apple.security.virtualization; a Developer ID is NOT
# required to run VMs locally. --force re-signs an existing binary so this stays idempotent.
# Per-mount scratch dir (empty on host, --scratch-path redirect on the /Volumes VM share)
# so host and VM builds don't share/poison one .build/. Same flag on the build and the
# --show-bin-path query. See scripts/lib/build-scratch.sh and BUILD.md.
SCRATCH_ARGS="$("$ROOT/scripts/lib/build-scratch.sh" "$ROOT")"
echo "▸ [1/3] Building $PRODUCT"
swift build --product "$PRODUCT"
BIN_DIR="$(swift build --product "$PRODUCT" --show-bin-path)"
swift build $SCRATCH_ARGS --product "$PRODUCT"
BIN_DIR="$(swift build $SCRATCH_ARGS --product "$PRODUCT" --show-bin-path)"
BIN="$BIN_DIR/$PRODUCT"
[ -x "$BIN" ] || { echo "✗ built binary not found at $BIN" >&2; exit 1; }