Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions rpm/build-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ else
echo "Unsupported architecture: $ARCH"
exit 1
fi

# Check architecture compatibility
HOST_ARCH=$(uname -m)
if [[ "$ARCH" != "$HOST_ARCH" ]]; then
echo "Error: Host architecture ($HOST_ARCH) does not match requested target architecture ($ARCH)."
echo "This script does not support cross-compilation natively."
echo "Please run this script on a native $ARCH host, or modify the script to use 'docker buildx' for cross-compilation."
exit 1
fi
fi


Expand Down
Loading