Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build for linux aarch64 architectures #4349

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

MoritzHamann
Copy link

Fixes #4348

Build failed to compile on Raspberry Pi 4, with

clang: error: the clang compiler does not support '-march=native'

The build script checks $OS_ARCH for arm64 to distinghuish between ARM and X64 architecture. However on Raspberry Pi, the uname -m command reports aarch64 rather than arm64.

This change updates the EXTRAFLAGS of the release-native target to check for both - arm64 and aarch64.

Build failed to compile on Raspberry Pi 4, with

clang: error: the clang compiler does not support '-march=native'

The build script checks $OS_ARCH for `arm64` to distinghuish between ARM
and X64 architecture. However on Raspberry Pi, the `uname -m` command
reports `aarch64` rather than `arm64`.

This change updates the EXTRAFLAGS of the `release-native` target to
check for both - `arm64` and `aarch64`.
@laytan laytan merged commit cf8f138 into odin-lang:master Oct 5, 2024
7 checks passed
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.

Unable to build on Debian with'clang: error: the clang compiler does not support '-march=native'
2 participants