-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Clang can't find C++ header files #30670
Copy link
Copy link
Closed
Labels
0.kind: regressionSomething that worked before working no longerSomething that worked before working no longer6.topic: llvm/clangIssues related to llvmPackages, clangStdenv and relatedIssues related to llvmPackages, clangStdenv and related
Milestone
Metadata
Metadata
Assignees
Labels
0.kind: regressionSomething that worked before working no longerSomething that worked before working no longer6.topic: llvm/clangIssues related to llvmPackages, clangStdenv and relatedIssues related to llvmPackages, clangStdenv and related
Fields
Give feedbackNo fields configured for issues without a type.
Issue description
cc-wrapper's
add-flags.shsetsNIX+CXXSTDLIB_COMPILEto an empty value. Because of this, fallback incc-wrapper.shdoesn't work:Steps to reproduce
Technical details
nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion) e458c44cc @Ericson2314 . I'm unsure how to fix it -- we can use
${foo:-default}substitution for the fallback instead but it will then incorrectly handle empty case (when someone really wants us to not add those flags).