Skip to content
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

Merged
merged 3 commits into from
May 3, 2021

Conversation

veprbl
Copy link
Member

@veprbl veprbl commented May 2, 2021

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
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

veprbl added 3 commits May 2, 2021 14:00
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++
@veprbl veprbl requested a review from Ericson2314 as a code owner May 2, 2021 18:17
Copy link
Member

@Ericson2314 Ericson2314 left a 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.

@domenkozar
Copy link
Member

cc @jonringer this is needed for fixing a bunch of macOS packages.

Copy link
Contributor

@jonringer jonringer left a 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 :)

@Ericson2314 Ericson2314 merged commit 7b413bf into NixOS:staging May 3, 2021
@lugray
Copy link
Contributor

lugray commented May 5, 2021

Can this be added to nixpkgs-unstable? 54c7a0f, which this fixes, exists on nixpkgs-unstable.

@veprbl
Copy link
Member Author

veprbl commented May 5, 2021

@lugray This is on its course towards that: staging -> staging-next -> master -> nixpkgs-unstable

@lugray
Copy link
Contributor

lugray commented May 5, 2021

Ah, okay. Thanks for explaining the process.

@ldeck
Copy link
Contributor

ldeck commented May 24, 2021

Is this related to NixOS/nix#4621?

@veprbl
Copy link
Member Author

veprbl commented May 24, 2021

@ldeck, no, it's not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants