-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
WIP: treewide: Improve pure darwin cross #110914
base: staging
Are you sure you want to change the base?
Conversation
What will this change enable? |
See #97047 |
dd2f9d0
to
557bce0
Compare
@matthewbauer OK I got as far as building libsystem. Do you know how the compiler-rt, libc++, and libc++abi part works? (To be fare, it works fine-ish to just reuse the same libsystem and just do cross for everything else, but I want to at least try doing everything "right" before giving up.) |
557bce0
to
f9298dd
Compare
1edcf5f
to
9ba3632
Compare
I am taking the non-invasive parts of NixOS#110914 to hopefully help out with NixOS#111988. In particular: - Use `lib.makeScopeWithSplicing` to make the `darwin` package set have a proper `callPackage`. - Adjust Darwin `stdenv`'s overlays keeping things from the previous stage to not stick around too much. - Expose `binutilsNoLibc` / `darwin.binutilsNoLibc` to hopefully get us closer to a unified LLVM and GCC bootstrap.
If things build fine with `stdenvNoCC`, let them use that. If tools might be prefixed, prepare for that.
9ba3632
to
08d1131
Compare
I marked this as stale due to inactivity. → More info |
Motivation for this change
Some things are a little messier than they could be because I'm avoiding mass rebuilds. I'll go back and clean up after.Doing that right away.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)