r/cpp • build2 • Aug 05 '26

Faster Than Ninja

https://build2.org/blog/faster-than-ninja.xhtml
65 Upvotes

69 comments sorted by

View all comments

Show parent comment

2

u/berium build2 Aug 06 '26

This is super interesting, it seems like a pretty obvious area for tooling to improve.

Yes, as I mentioned in one the sibling comments, we may try to add to GCC a way to dump all this information in JSON and with a single invocation (and hopefully other compilers will follow).

because the IDE itself knows the details about the compiler and can simply invoke it directly

Hm, I would be surprised if there is an IDE in existence that knows all the detail that we need (like list of system header and library search paths). Well, maybe Visual Studio comes pretty close.

1

u/theICEBear_dk Aug 06 '26

Given that I get them as a pop-up when I hover over a failed include a source file (pre-compile even) I think there is a chance CLion does gather that information. But it likely gets it from CMake or similar. I actually cannot tell if Visual Studio does the same in any public facing way.