-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
treewide: remove -march=native #202687
treewide: remove -march=native #202687
Conversation
Not only that, the generated code will expect everybody that downloads it from caches to have the same processor as the builder, we don't use server's CPUs, so probably it makes performance even worse. |
From a performance stand point But of course, it is impossible to know since it would need tests. |
These impure flags should have been handled by the cc-wrapper: nixpkgs/pkgs/build-support/cc-wrapper/cc-wrapper.sh Lines 108 to 121 in 20193b6
|
Nice to know, but I think it is still worth to remove those just to make sure that nobody will follow the same. |
Result of 2 packages built:
|
Successfully created backport PR #202693 for |
Description of changes
-march=native
breaks purity, so let's remove it.Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes