CoatiSoftware / Sourcetrail

Sourcetrail - free and open-source interactive source explorer
https://www.sourcetrail.com/
GNU General Public License v3.0
14.29k stars 1.33k forks source link

Unknown argument "-mlongcalls"; did you mean "-mlong-calls" when indexing ESP32 project #1210

Closed erusyd closed 2 years ago

erusyd commented 2 years ago

When I use Sourcetrail to index an ESP32 CMake project, I get serveral hundreds of ERRORs: image

"-mlongcalls" is from compile_commands.json which is generated using bear, for example: image

I know this is because Sourcetrail use Clang to parse C/C++ files. Clang uses "-mlong-calls", but GCC uses "-mlongcalls". So how to set Sourcetrail to recognize GCC's "-mlongcalls" argument?