danielbarter / mini_compile_commands

GNU General Public License v3.0
37 stars 3 forks source link

Unable to find C++ standard library when used with GCC #1

Open danielbarter opened 1 year ago

danielbarter commented 1 year ago

Currently, GCC and the GNU C++ standard library are bundled together in nixpkgs. Because of this, the GNU C++ standard library location isn't explicitly passed to GCC, so it doesn't appear in the compile_commands.json.

This should be fixed as a result of https://github.com/NixOS/nixpkgs/issues/132340. In the meantime, everything works as expected using clang based standard environments.

danielbarter commented 1 year ago

As of v0.4, this has been fixed. Once gcc has been split apart upstream, the fix will need to be removed.

levnikmyskin commented 7 months ago

Hi, first things first: thank you very much for this project. It was the only thing that made my dev env work.
That said, is this still an issue? For me everything worked out of the box :)

danielbarter commented 7 months ago

At some point, I expect nixpkgs will split gcc up into smaller packages. When that happens, this project will need to be updated accordingly. https://github.com/danielbarter/mini_compile_commands/blob/073ad72d27287f3e8073c3ef0c9069223fb2048c/default.nix#L17 will need to be removed