codeql icon indicating copy to clipboard operation
codeql copied to clipboard

cpp - compiler support

Open totocaca123 opened this issue 1 year ago • 2 comments

Questions

  • According to https://codeql.github.com/docs/codeql-overview/supported-languages-and-frameworks/, only few compilers are supported. The supported compiler are old versions (clang12 and gcc11). Is there any issue to use latest version og these compilers

  • What about other compilers (diab, iar, greenhills, tasking), is there a way to run codeql on these compiled code?

totocaca123 avatar Feb 06 '24 18:02 totocaca123

Thanks for the question. I'm asking the team that maintains the C extractor.

aeisenberg avatar Feb 06 '24 21:02 aeisenberg

  • According to https://codeql.github.com/docs/codeql-overview/supported-languages-and-frameworks/, only few compilers are supported. The supported compiler are old versions (clang12 and gcc11). Is there any issue to use latest version og these compilers

The documentation is somewhat out-of-date, and we'll hopefully fix this soon. Newer versions should generally work. If not, please let us know by opening issues on this.

  • What about other compilers (diab, iar, greenhills, tasking), is there a way to run codeql on these compiled code?

Those compilers are not supported. If your code also compiles with clang or gcc, I'd recommend using those. If the compilers still identify themselves are being based on clang or gcc in their --version string, things might still work but we cannot guarantee anything.

jketema avatar Feb 07 '24 09:02 jketema

Closing as answered.

jketema avatar Apr 12 '24 14:04 jketema