Skip to content

Always rebuilds sources with autodetected clang and ninja on linux. #2289

@ghost

Description

Brief Issue Summary

On linux scan for kits founds /bin/clang++-X instead of /usr/bin/clang++-X, which breaks ninja (see ninja-build/ninja#1330 ninja-build/ninja#1400).

It would be nice, if scan for kits would prefer /usr/bin/compiler to /bin/compiler.

Steps to reproduce:

  • Get linux os, where /bin is symlink to usr/bin (fedora 35, for example).
  • Install clang
  • scan for kits
  • select clang kit (it would point to /bin/clang*)
  • try build a project
  • try build project one more time, it will rebuild all sources, even none was modified.

If you change path of clang compiler from /bin/clang to /usr/bin/clang in .local/share/CMakeTools/cmake-tools-kits.json, ninja stops to rebuild all sources and rebuilds only modified, as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions