rizsotto / scan-build

Clang's scan-build re-implementation in python
Other
362 stars 34 forks source link

Empty compile_commands.json using Arm Compiler with Make #134

Closed jvela018 closed 10 months ago

jvela018 commented 10 months ago

Hi,

Here are the steps to reproduce:

Download: $pip install scan-build Terminal Command: $ intercept-build make -j$(nproc)

OS Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy

Compiler: Arm Compiler for Embedded 6.21

I also tried different variations including overriding the compiler so that:

intercept-build --verbose --override-compiler --use-cc <path-to-my-compiler> make -j$(nproc)

The verbose flag didn't output anything. Any pointers on how to proceed from here?

BR,

/Jon

rizsotto commented 10 months ago

Hey @jvela018 ,

please use Bear to generate the compilation database. (That tool is better maintained, and have more options to control what compilers to recognize.)

jvela018 commented 10 months ago

Ok. I will move to Bear. I'll close this issue. Thanks