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

Not all Visual C++ installations are taken into consideration as toolchains

    XMLWordPrintable

Details

    • ae07c31976 (qt-creator/qt-creator/9.0) ae07c31976 (qt-creator/qt-creator/master) ae07c31976 (qt-creator/qt-creator/qds/dev)

    Description

      On a system with Visual Studio 2019 BuildTools and Community even though all the compilers are displayed in settings, only BuildTools end up as being registered as toolchains.

      I've added debug traces and below are their values:

      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat"
      MsvcToolChain::fromMap "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat"
      ToolChainManager::registerToolChain "C:/Qt/Tools/mingw810_64/bin/gcc.exe"
      ToolChainManager::registerToolChain "C:/Qt/Tools/mingw810_64/bin/g++.exe"
      ToolChainManager::registerToolChain "C:/Qt/Tools/mingw1120_64/bin/gcc.exe"
      ToolChainManager::registerToolChain "C:/Qt/Tools/mingw1120_64/bin/g++.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/x64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/x64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/ARM64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/ARM64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/ARM64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/ARM64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/x64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/x64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/ARM64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/ARM64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/ARM64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/ARM64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/x64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/x64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/ARM64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/ARM64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/ARM64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/ARM64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/x64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX86/x64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/amd64_x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/amd64_x86/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/amd64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/amd64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/x86_amd64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/x86_amd64/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/x86_ARM/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/x86_ARM/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/amd64_arm/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/amd64_arm/cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files/LLVM/bin/clang-cl.exe"
      ToolChainManager::registerToolChain "C:/Program Files/LLVM/bin/clang-cl.exe"
      ToolChainManager::registerToolChain "C:/Strawberry/c/bin/g++.exe"
      ToolChainManager::registerToolChain "C:/Strawberry/c/bin/gcc.exe"
      ToolChainManager::registerToolChain "C:/Program Files/LLVM/bin/clang++.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/Llvm/x64/bin/clang++.exe"
      ToolChainManager::registerToolChain "C:/Program Files/LLVM/bin/clang.exe"
      ToolChainManager::registerToolChain "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/Llvm/x64/bin/clang.exe"
       

      Note that the C:/Program Files/Microsoft Visual Studio/2019/Community toolchains do not show up at ToolChainManager::registerToolChain.

      This has side effects like https://bugreports.qt.io/browse/QTCREATORBUG-28295

      Attachments

        Issue Links

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

          Activity

            People

              cadam Cristian Adam
              cadam Cristian Adam
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes