Skip to content

Commit 47358d6

Browse files
author
AztecBot
committed
Merge branch 'next' into merge-train/barretenberg
2 parents 4f9ba99 + c7172cb commit 47358d6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

barretenberg/cpp/bootstrap.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ function inject_version {
3737
printf "$version\0" | dd of="$binary" bs=1 seek=$version_offset conv=notrunc 2>/dev/null
3838

3939
# Re-sign after modifying the binary.
40+
# On macOS, use codesign. On Linux amd64, use ldid for Mach-O cross-compiled binaries.
41+
# ARM64 Linux instances don't need ldid — all macOS release artifacts are published from amd64.
4042
if [[ "$(os)" == "macos" ]]; then
4143
codesign -s - -f "$binary" 2>/dev/null || true
42-
elif llvm-objdump-20 --macho --private-header "$binary" 2>/dev/null | grep -q "Mach header"; then
44+
elif [[ "$(arch)" == "amd64" ]] && llvm-objdump-20 --macho --private-header "$binary" 2>/dev/null | grep -q "Mach header"; then
4345
ldid -S "$binary"
4446
fi
4547
}

0 commit comments

Comments
 (0)