Handle Hardcoded Path Conflicts
Nucleic-Session: 1097CEC4-A18A-4474-967A-80B333C5493A Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user