Problems were encountered while collecting compiler information with custom compiler
Answered
In our project we use different compiler than GCC.
Whenever we run the cmake (e.g. "Reload CMake Project" in the cmake tool window) we get an error
Problems were encountered while collecting compiler information:
xt-xcc ERROR parsing -fpch-preprocess: unknown flag
xt-xc++ ERROR parsing -fpch-preprocess: unknown flag

* We can compile and run the project even with that error.
What is causing this error?
How can I tell the script that my compiler doesn't have this flag?
Thank you
Please sign in to leave a comment.
Hello!
The thing is that our code-insight features depend on various information that we get from the compiler: system includes, standard defines, compiler features, and so on. To get this information we go directly to the compiler. And therefore CLion can work correctly and stably only with supported compilers: clang and gcc/gcc-based in case of Linux.
There is no way to use an unsupported compiler in CLion for now. Feel free to comment or upvote https://youtrack.jetbrains.com/issue/CPP-9615. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.
Thank you.
I opened https://youtrack.jetbrains.com/issue/CPP-23163
Also I found this https://youtrack.jetbrains.com/issue/CPP-13783 to temporarily disable -fpch-preprocess