Support different format stratagies for compiler executable path#671
Support different format stratagies for compiler executable path#671MabaKalox wants to merge 2 commits intorizsotto:masterfrom
Conversation
|
Interesting problem! My first reaction is... I am not 100% sure if the reported executable always comes with full path. I can imagine when preload is used, some of the exec methods are not providing the full path. The other thing which come to my mind... if the same configuration values would make sense for the executable? Should it be I am traveling at the moment, can't write code, but can read comments. :) |
|
Hi! I agree that default format options seems pointless. Also I have done some testing, and executable path captured by libexec.so is different, e.g.: Without Maybe options could be: |
I have cross compiled project, with custom toolchain which is not on PATH and Bear is hard-coded to set executable path to executable name.
That becomes problem, because clangd fails to resolve toolchain headers from such compiles_commands.json.
Example:
bear -- /opt/custom_toolchain/bin/arm-linux-gnueabihf-gcc -o main main.cProduces:
This pull request adds setting
executale: PathResolver, which behaves in same manner asfile: PathResolver. e.g:Would generate:
Please Note:
gcc