[LGTM - C++] Compiling with C++20 #535
-
My project uses C++20 so requires a newer compiler than is available on the version of ubuntu (Eoan/19.10) used by LGTM. Is it recommended to use the built-in CodeQL with GitHub actions in this scenario? I tried adding a PPA but they aren't allowed. The latest logs from my attempts at coverage are here if needed. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Greetings, thanks for getting in touch with us about this! We're actually in the process of updating the default version of Ubuntu used by LGTM to 20.04 and, unless any unforeseen problems arise in our testing, expect to have that rolled out later this week. It may well be that your project can be successfully built after we've completed that upgrade, so I would recommend trying again next week. Having said that, I will note that support for C++20 in CodeQL is currently in beta (see https://help.semmle.com/QL/ql-support/language-support/), so while things should more-or-less work you may notice some issues, particularly when using new features of C++20. Do get in touch if you encounter any such issues. |
Beta Was this translation helpful? Give feedback.
-
The upgrade of the build environment to Ubuntu 20.04 was deployed on February 9. That upgrade allows you to have GCC 10 since Ubuntu has an official package for that. There is no GCC 11 package, so your use of C++20 on LGTM is limited to what's supported by GCC 10 (and by CodeQL). I triggered a test run of your project with GCC 10, and the logs show compilation errors related to |
Beta Was this translation helpful? Give feedback.
Greetings, thanks for getting in touch with us about this! We're actually in the process of updating the default version of Ubuntu used by LGTM to 20.04 and, unless any unforeseen problems arise in our testing, expect to have that rolled out later this week. It may well be that your project can be successfully built after we've completed that upgrade, so I would recommend trying again next week.
Having said that, I will note that support for C++20 in CodeQL is currently in beta (see https://help.semmle.com/QL/ql-support/language-support/), so while things should more-or-less work you may notice some issues, particularly when using new features of C++20. Do get in touch if you encounter an…