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

feat: detect march and mcpu #2577

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

Cryolitia
Copy link
Contributor

@Cryolitia Cryolitia commented Oct 17, 2024

The compiler don't support march=native / mcpu=native on risvc64, either. This fix the compile failure on riscv64.

Reported-by: https://archriscv.felixc.at/.status/log.htm?url=logs/proxmark3/proxmark3-4.18589-1.log

Refactor the way that detect whether march=native / mcpu=native are supported on the platform, following the comment.

Add an option DONT_BUILD_NATIVE to suppress building with march=native / mcpu=native. For building it someone-self, it is helpful to generate the fastest binary, but for Linux or some other operating system distribution package maintainer, it is over optimized. We may build and package this software on a machine that is x86_64-v3 but distribute it to a user that using an old hardware like Intel Atom, and result in a SIGILL.

Already tested it on x86_64 and riscv64

Copy link

You are welcome to add an entry to the CHANGELOG.md as well

@iceman1001
Copy link
Collaborator

Awesome! It sure will help out the package maintainers a lot.

@iceman1001 iceman1001 merged commit 66ae89f into RfidResearchGroup:master Oct 17, 2024
12 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.

2 participants