-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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: Use configurePlatforms
to control --build, --host, and --target
#28391
gcc: Use configurePlatforms
to control --build, --host, and --target
#28391
Conversation
@Ericson2314, thanks for your PR! By analyzing the history of the files in this pull request, we identified @civodul, @shlevy and @Dridus to be potential reviewers. |
I threw Though the same question as with binutils remain, what's the concrete benefit of passing these flags when not cross compiling? |
I made an attempt at laying the benefits in the binutils thread #28374 (comment) Raspberry Pis are Arm v7? Then I might just be able to test this out. |
Seems like it failed: https://gist.github.com/dezgeg/8d155569d7be06a846a734e8fb7123e9. Mysterious indeed...
|
Ok, then I'll do the same arm special case as binutils. Sound good then? |
...just as we did for binutils. When the underlying issue is resolved (probably with a configure script patch or lib/systems/parse.nix change), this should be reverted.
a56f26f
to
ebc9b16
Compare
I added the arm 32-bit fallback. Building and then going to merge for the same reasoning as #28374 (comment) . Hope that's OK. |
Motivation for this change
A step in consolidating the configure flags logic within these derivations.
Things done
There's quite a few combination of platforms to try. I don't expect the cross ones to work until #26805 but the native ones can be tested. @dezgeg let me know how/whether to reproduce the ARM issue for binutils, as I suspect it's a general autoconf one and might affect GCC too.
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)