Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32126

QtCreator toolchain "re-detect" is using symlinks instead of real path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 15.0.0
    • C/C++/Obj-C++ Support
    • None
    • Linux/X11

    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++

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            zaps166 Błażej Szczygieł
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes