-
Notifications
You must be signed in to change notification settings - Fork 105
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
Drop "-march=native" from HOST flags #198
base: main
Are you sure you want to change the base?
Conversation
GCC does not support -march=native on some targets (ia64, riscv). The performance enhancement for makeguids isn't worth the trouble it causes. Bug: https://bugs.gentoo.org/831334 Signed-off-by: Mike Gilbert <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code you're deleting already handles ia64 correctly. I am unconvinced that the right thing is to delete it wholesale rather than adding handling for riscv.
What is the purpose behind passing |
|
It looks like A better solution now would be to not add |
I added a commit to stop adding CPPFLAGS/CFLAGS to HOST_CPPFLAGS/HOST_CFLAGS. |
When cross compiling, these variables may contain flags that are not compatible with both toolchains. Signed-off-by: Mike Gilbert <[email protected]>
I haven't thought this through fully, but I think we rely on that for package builds to inherit distro flags? |
Distro packages can set HOST_CPPFLAGS if they really want to. It seems unimportant for a binary that only gets used during the build process and isn't installed by the resulting package. |
Please reconsider merging this. |
|
GCC does not support
There is no valid reason for adding It also makes no sense to add CFLAGS and CPPFLAGS to HOST_CFLAGS and HOST_CPPFLAGS. |
I should have said "microarchitecture" not "architecture". The problem I tried to solve is that makeguids built with "-march=skylake" target that we used to build everything (not only efivars, but all packages) that is supposed to be run on a Chromebook (at that time) would trap on my workstation that had older Xeons.
|
GCC does not support -march=native on some targets (ia64, riscv).
The performance enhancement for makeguids isn't worth the trouble it
causes.
Bug: https://bugs.gentoo.org/831334
Signed-off-by: Mike Gilbert [email protected]