Skip to content

Add architecture fence to Ubuntu mmdv build script#808

Closed
ctmd1234567 wants to merge 1 commit into
solvcon:masterfrom
ctmd1234567:issue-807-architecture-fence
Closed

Add architecture fence to Ubuntu mmdv build script#808
ctmd1234567 wants to merge 1 commit into
solvcon:masterfrom
ctmd1234567:issue-807-architecture-fence

Conversation

@ctmd1234567
Copy link
Copy Markdown

Closes #807

This adds an early architecture check to the Ubuntu 24.04 mmdv build script. The script now allows x86_64/amd64 and fails fast with a clear error message on unsupported architectures.

Tested:

  • build-mmdv-ubuntu24.sh --print-prefix on x86_64
  • simulated arm64 uname output to verify the unsupported architecture error path
  • git diff --check

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds an early host-architecture guard to the Ubuntu 24.04 dependency build script to fail fast on unsupported platforms.

Changes:

  • Detects host architecture via uname -m.
  • Exits with an error message when architecture is not x86_64/amd64.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +76 to +84
MMDV_ARCH="$(uname -m)"
case "${MMDV_ARCH}" in
x86_64|amd64)
;;
*)
echo "Unsupported architecture: ${MMDV_ARCH}. This script currently supports x86-64 only." >&2
exit 1
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add architecture fence in mmdv building scripts

2 participants