-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
gcc: Simplify configure flags #32361
Conversation
That is, build != host == target
A nice code deduplication
Vendor needed to be made valid
Could you explain why changing env vars does not rebuild anything? Is it important that your new simple commits are before merge commits (possibly breaking eval or build between the first and the last merge commit, unless you have confirmed that they don't)? |
Ah, because it only affects cross builds.
I'm not sure it will. Bisection with |
Ah sorry, I didn't mean bisection so much as what one does after. From https://hydra.nixos.org/jobset/nixpkgs/ericson2314-cross-trunk I already know what went wrong when. I'm trying to make changes to working commits such that they keep working, and when with later commits, they are less broken. In this case, I'm mostly simplifying things, but through that method I know the change is valid. Next up, I have some changes to Back to the bisecting part, if my new fix doesn't fix all of the new merge commits, I can see roughly where some thing went wrong. I can also bisect the original history, merging the bisect commits with the most recent merge commit for a sort of virtual linear history. That's all quite complex. Probably the simplest way to look at it is I'm trying to make there be at least one path on the history with no regressions. I'm breaking off chunks of history to get to the present while fixing any breakage along the way. |
It might just be easier to explain after I make the next PR, which is now ready. Merging this so that makes sense. |
Motivation for this change
No more
crossAttrs.configureFlags
, simplified platform flags, and more tool env vars.The history is intentionally complicated; it will assist me with bisecting various cross related regressions (especially the build != host == target GCC builds).
Things done
No native hashes should be changed. The first commits, "morally equivalent" to the final diff, are tested at https://hydra.nixos.org/jobset/nixpkgs/ericson2314-old-cross-known-good .
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)CC @bgamari