rizsotto / Bear

Bear is a tool that generates a compilation database for clang tooling.
GNU General Public License v3.0
4.76k stars 312 forks source link

Feature Request: Preserve original compiler name (for cross-compilation clangd compatibility) #438

Closed tadcoburnsonos closed 2 years ago

tadcoburnsonos commented 2 years ago

Feature Request An option to bear (--preserve-cc-name ?) that causes it to preserve the original compiler name (and path, if any) in the compilation database.

Background I've been working to get VSCode and its clangd language server to work with compilation databases created by "bear". We are cross-compiling, and have discovered the following problem:

tadcoburnsonos commented 2 years ago

I just realized I'm not on the latest version of bear - I'm using 2.3.11. I'll see if this issue is addressed in the latest version - apologies if it is.

tadcoburnsonos commented 2 years ago

It appears that 2.4.4 has the feature I'm looking for. Closing.