-
-
Notifications
You must be signed in to change notification settings - Fork 341
Open
Labels
MSVCMicrosoft Visual C++ SupportMicrosoft Visual C++ Support
Description
Describe the bug
I have VS2019 installed, with the VC++ 14.2, 14.1, and 14.0 build tools selected in the installer. When MSVC_VERSION="14.1" is specified, SCons cannot find the 14.1 build tools. When MSVC_VERSION="14.2" or 14.0 are specified, SCons works as expected.
Required information
- Link to SCons Users thread discussing your issue: https://discord.com/channels/571796279483564041/571796280146133047/713183631547302008
- Version of SCons: 3.1.2
- Version of Python: 3.7.9
- Which python distribution if applicable (python.org, cygwin, anaconda, macports, brew,etc): Anaconda
- How you installed SCons: Conda
- What Platform are you on? (Linux/Windows and which version): Windows 10
- How to reproduce your issue? Please include a small self contained reproducer. Likely a SConstruct should do for most issues.
env = Environment(MSVC_VERSION="14.1")
env.Program("hello", "hello.cpp")- How you invoke scons (The command line you're using "scons --flags some_arguments"):
scons
Further information:
- With
MSVC_VERSION="14.2", SCons generates this command forvswhere.exe:vswhere.exe -products * -version "[16.0, 17.0)" -property installationPathand the output when run on the command line is:C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise - With
MSVC_VERSION="14.1", SCons generates this command:vswhere.exe -products * -version "[15.0, 16.0)" -property installationPathand there is no output when run on the command line - The 14.16 (current version as of this writing) build tools are located in subfolders of
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.16.27023 - The output of
vswhere --products * -format jsonis:
[
{
"instanceId": "7876f29c",
"installDate": "2020-02-04T16:37:05Z",
"installationName": "VisualStudio/16.6.0+30114.105",
"installationPath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise",
"installationVersion": "16.6.30114.105",
"productId": "Microsoft.VisualStudio.Product.Enterprise",
"productPath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\IDE\\devenv.exe",
"state": 4294967295,
"isComplete": true,
"isLaunchable": true,
"isPrerelease": false,
"isRebootRequired": false,
"displayName": "Visual Studio Enterprise 2019",
"description": "Scalable, end-to-end solution for teams of any size",
"channelId": "VisualStudio.16.Release",
"channelUri": "https://aka.ms/vs/16/release/channel",
"enginePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\resources\\app\\ServiceHub\\Services\\Microsoft.VisualStudio.Setup.Service",
"releaseNotes": "https://go.microsoft.com/fwlink/?LinkId=660893#16.6.0",
"thirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=660909",
"updateDate": "2020-05-20T17:41:11.1443849Z",
"catalog": {
"buildBranch": "d16.6",
"buildVersion": "16.6.30114.105",
"id": "VisualStudio/16.6.0+30114.105",
"localBuild": "build-lab",
"manifestName": "VisualStudio",
"manifestType": "installer",
"productDisplayVersion": "16.6.0",
"productLine": "Dev16",
"productLineVersion": "2019",
"productMilestone": "RTW",
"productMilestoneIsPreRelease": "False",
"productName": "Visual Studio",
"productPatchVersion": "0",
"productPreReleaseMilestoneSuffix": "7.0",
"productSemanticVersion": "16.6.0+30114.105",
"requiredEngineVersion": "2.6.2108.39667"
},
"properties": {
"campaignId": "",
"channelManifestId": "VisualStudio.16.Release/16.6.0+30114.105",
"nickname": "",
"setupEngineFilePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\vs_installershell.exe"
}
}
]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
MSVCMicrosoft Visual C++ SupportMicrosoft Visual C++ Support
Type
Projects
Status
No status