darwin: introduce darwinArch, apply in {cc,bintools}-wrappers#114817
darwin: introduce darwinArch, apply in {cc,bintools}-wrappers#114817Ericson2314 merged 5 commits intoNixOS:stagingfrom
Conversation
These are now provided by the standard bintools and cc wrappers.
|
Looks like it broke stdenv on |
I was so sure it had been tested as part of the |
|
@thefloweringash looks like thefloweringash@178ad9a indeed fixes the issue. |
Excellent! Thank you for testing. I've opened this as #114944. |
|
This broke |
Workaround for build failure after adding mandatory -arch argument. Nixpkgs targets a single architecture, so this saves a small amount of wasted build effort. See NixOS#114817 (comment)
Motivation for this change
Extracted out of #105026. This, as well as #111988, try to make the darwin {cc,bintools}-wrappers use the correct flags for the target platform. A version of these flags previously existed only in the xcode wrapper.
Tested only as part of #105026. It changes the compiler and linker flags for all darwin packages, so there's a potential for a lot of breakage.
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)