Open danielbarter opened 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.
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 :)
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
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.