We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4f9ba99 + c7172cb commit 47358d6Copy full SHA for 47358d6
1 file changed
barretenberg/cpp/bootstrap.sh
@@ -37,9 +37,11 @@ function inject_version {
37
printf "$version\0" | dd of="$binary" bs=1 seek=$version_offset conv=notrunc 2>/dev/null
38
39
# 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.
42
if [[ "$(os)" == "macos" ]]; then
43
codesign -s - -f "$binary" 2>/dev/null || true
- 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
45
ldid -S "$binary"
46
fi
47
}
0 commit comments