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

UserOverride.cmake: fix native optflag for PowerPC #2459

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

barracuda156
Copy link
Contributor

@certik This is needed for the build to be feasible on PowerPC, since -march is unsupported there.
https://gcc.gnu.org/onlinedocs/gcc/RS_002f6000-and-PowerPC-Options.html

-mtune should be used instead; -mcpu also supported but may be unsafe and produce a broken code for some targets.

@certik
Copy link
Contributor

certik commented Jan 10, 2024

I am not sure if this will work all the time, but we can merge it for now, and iterate on it later if needed.

Thanks!

@certik certik merged commit 0d43cc4 into lcompilers:main Jan 10, 2024
12 of 13 checks passed
@barracuda156 barracuda156 deleted the ppc branch January 11, 2024 09:27
@barracuda156
Copy link
Contributor Author

@certik This leaves out cases of Rosetta and cross-compilation for PowerPC, but they were broken anyway.
I did not do it in one go to make it simpler. Fixing native build can be the first step.

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