Fix use of WindowsSDKVersion
winsdk.bat appends backslash to the winsdk version (see "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools\vsdevcmd\core\winsdk.bat")
Incorrect parsing causes this error: Error[-WUserErr]: in $S/build/platform/msvc/ya.make: We have no Windows Kits version 10.0.16299.0\
@@ -1086,7 +1086,7 @@ class MSVCToolchainOptions(ToolchainOptions):
self.lib = which('lib.exe')
sdk_dir = os.environ.get('WindowsSdkDir')
- self.sdk_version = os.environ.get('WindowsSDKVersion')
+ self.sdk_version = os.environ.get('WindowsSDKVersion').replace('\\', '')
vc_install_dir = os.environ.get('VCToolsInstallDir')
if any([x is None for x in (sdk_dir, self.sdk_version, vc_install_dir)]):
