Replies: 1 comment 5 replies
-
Hi, PCH files are generated during CTU analysis. Cross Translation Unit analysis works in two phases: first the source files are compiled to PCH files, so in the 2nd phase there's no need to recompile them when a function's definition is needed from another translation unit. Some elaboration would be needed about why the generated PCHs are incompatible with the analyzer invocation. One reason can be that two different clang compilers are used in the two phases, or different compiler options are used in the two phases. Maybe CodeChecker doesn't apply compiler flags from from the config file in the 1st phase. |
Beta Was this translation helpful? Give feedback.
-
I'm using clang config files in my custom toolchain. They are loaded based on symlinks to the actual compiler (this is similar to a compiler wrapper script, but saves a shell invocation):
(my compiler is a symlink to the actual
clang++
binary calledx86_64-unknown-linux-musl-clang++
)When I try to run clangsa/clang-tidy, I get lots of errors like
This suggests that it's calling plain
clang
orclang-tidy
instead ofx86_64-unknown-linux-musl-*
. Is there a way to set the full paths to the commands to be called? I see some indication of this in package_layout.md but I lack a lot of context. Where do I write this config file and how do I tell CodeChecker to use it?Beta Was this translation helpful? Give feedback.
All reactions