rizsotto / Bear

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

Is there any way to extract the absolute path of the compiler used in the project compilation process? #413

Closed tr4v3ler closed 2 years ago

tr4v3ler commented 2 years ago

Is there any way to extract the absolute path of the compiler used in the project compilation process instead of cc? The project I used to extract used multiple preset compilers during compilation and construction, but all the results I extracted were displayed as cc. For example, I want the result like this: "arguments": [ "/home/tr4v3ler/data/mtk_kernel/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc", "-c", "-Wp,-MD,lib/.ratelimit.o.d", but not this: "arguments": [ "cc", "-c", "-Wp,-MD,lib/.ratelimit.o.d", My project environment is as follows: Ubuntu 18.04.5 LTS bear 2.3.11 mtk_kernel

rizsotto commented 2 years ago

Version 3.0.x has fix for it.

tr4v3ler commented 2 years ago

Version 3.0.x has fix for it.

Thank you for your reply. In addition, may I ask why there is no bear 3.0.x release on Ubuntu 18.04.5?

rizsotto commented 2 years ago

I am not doing the packaging, so don't know the answer... Check out the discussion #408 about to compile it on that distribution.