-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
cc-wrapper: fix regression for the C compiler wrapper #121527
Conversation
This made C++ standard headers passed to be passed when C compiler is executed, which is not a correct fix. This reverts commit 54c7a0f.
CPP is the C PreProcessor CXX is C++
…ot its includes Should be the correct fix for NixOS#111970
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the look of this, including the cpp
-> cxx
.
cc @jonringer this is needed for fixing a bunch of macOS packages. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff LGTM
(hopefully) not a breaking change :)
Can this be added to nixpkgs-unstable? 54c7a0f, which this fixes, exists on nixpkgs-unstable. |
@lugray This is on its course towards that: staging -> staging-next -> master -> nixpkgs-unstable |
Ah, okay. Thanks for explaining the process. |
Is this related to NixOS/nix#4621? |
@ldeck, no, it's not. |
Motivation for this change
#111970 caused a regression: C compiler is now passed a path to the C++ standard library includes
Fixes: #118195
Fixes: #119866
Fixes the original issue behind #111970 (cc @ttuegel)
cc @abbradar as author of the original nostdlib logic 87607af
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)