You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
circle 205 doesn't support -fpch-preprocess or -dD, which prevents it from being used as the compiler for CMake projects in CLion.
I believe this to be relevant for circle since I'd expect one of the keys to its adaption being how well it plays with IDEs.
Details
When using circle as the compiler then any CMake target (e.g.: add_executable and add_library) generates the following error (as reported within CLion):
Cannot get compiler information:
Compiler exited with error code 1: /usr/bin/circle -xc++ -g -std=c++11 -fpch-preprocess -v -dD -E
circle: Unknown command line argument '-fpch-preprocess'. Try: '/usr/bin/circle --help'
circle: Did you mean '--ftime-report'?
circle: Unknown command line argument '-dD'. Try: '/usr/bin/circle --help'
circle: Did you mean '-D'?
Using CMake on its own doesn't generate any errors.
Searching for the issue on the Internet the best description I could find was in an issue that was raised on the open-watcom issue list back in 2020 (see open-watcom/open-watcom-v2#596).
A possible workaround is to use CLions Custom Compilers feature (released in CLion 2021.3 EAP):
The issue with using CLions Custom Compilers is that all the data is static (e.g., each time one adds a new #define or a new #include then the custom section needs to be regenerated).
The text was updated successfully, but these errors were encountered:
TL;DR
circle 205 doesn't support
-fpch-preprocess
or-dD
, which prevents it from being used as the compiler for CMake projects in CLion.I believe this to be relevant for circle since I'd expect one of the keys to its adaption being how well it plays with IDEs.
Details
When using circle as the compiler then any CMake target (e.g.:
add_executable
andadd_library
) generates the following error (as reported within CLion):sample CMakeLists.txt
sample test_circle.cpp
sample CMake command (used by CLion)
Using CMake on its own doesn't generate any errors.
Searching for the issue on the Internet the best description I could find was in an issue that was raised on the open-watcom issue list back in 2020 (see open-watcom/open-watcom-v2#596).
A possible workaround is to use CLions Custom Compilers feature (released in CLion 2021.3 EAP):
The issue with using CLions Custom Compilers is that all the data is static (e.g., each time one adds a new
#define
or a new#include
then the custom section needs to be regenerated).The text was updated successfully, but these errors were encountered: