Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Done
-
Affects Version/s: 1.9.1
-
Fix Version/s: 1.16.0
-
Component/s: Toolchains: Visual C++
-
Labels:None
Description
Currently Qbs either relies on a toolchainInstallPath being set in a profile or otherwise, or that cl.exe is in the PATH, in order to build with MSVC. Instead of the BinaryProbe we have now, we should extend this to a more specific MSVC compiler probe, which looks in PATH and searches the system/registry for the installed location of the latest MSVC available on the system (if a specific version number is supplied, we could also constrain the search to that version).
This is necessary for "out of the box" building with MSVC and profile:none
A "cpp.preferredCompilerVersion" property might be a good idea as a part of this implementation, since version constraints are typically quite important with MSVC toolchains.