Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
Qt Creator 15.0.0
-
None
Description
When QtCreator detects toolchains, it uses path with symlinks instead of real path.
Arch Linux has real `/usr/bin` directory, but `/bin` is a symlink to `usr/bin`. QtCreator finds compilers like `/bin/clang` instead of `/usr/bin/clang`.
Why is it bad? I noticed, when I use CMake+Clang+Ninja and clang path is `/bin/clang` instead of `/usr/bin/clang`, every build rebuilds almost entire program every time.
Maybe it's a clang bug (18.1.8 here, gcc seems to be working correctly), but I think it's more safe to take the real paths anyway.
Example difference between commands (first works bad, second works good):
cmake -B build -S . -GNinja -DCMAKE_C_COMPILER=/bin/clang -DCMAKE_CXX_COMPILER=/bin/clang++
cmake -B build -S . -GNinja -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++