GCC / CLANG (Linux)
Detect dependencies from GCC/CLANG makefiles
The experimental support for GCC/CLANG can be enabled using the --scan-gcc
flag. In this configuration the scanner will require the presence of dependency files (".d" files). The gcc/clang compiler can emit a ā.dā file (short for dependency): each .d file lists all of the #include-ed headers your .c or .cpp file pulled in during pre-processing.
To get GCC or Clang to emit .d
files as part of your normal build, just add the -MD flag to your gcc/clang compile instruction. After that, you can simply launch Meterian with the additional --scan-gcc
flag in order for it to identify all system and external libraries.
The support is at the moment limited to Debian or RedHat based builds/
Last updated
Was this helpful?