-
Notifications
You must be signed in to change notification settings - Fork 7
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
Standard library headers not being found properly bear+gcc under Nix #424
Comments
The Added the following the the
New error:
Added the following to the
New error:
The
This removes all compilation errors. After that, the index's snapshot output contains:
We need to figure out how to programatically determine these flags in the general case. |
Full output for
|
One hacky way to do this programmatically, is that if the compiler is
And run it through This avoids having to detect any platform triples or any extra path calculation, as we get the paths from I can't think of a better way at the moment. |
The problem reproduces on macOS with Clang too. I had to use Bear 3.1.2 installed separately, the Bear 3.0.20 which was part of the Nix environment didn't work. For Clang + macOS, the following is enough:
|
Reproduction steps (on Linux):
The above error shouldn't come up.
The text was updated successfully, but these errors were encountered: