Skip to content

Commit 48a4a1e

Browse files
committed
Fix fetching VS install path.
1 parent 6c59c99 commit 48a4a1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/clang-win.jam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ rule init ( version ? : command * : options * )
140140
local vswhere = [ os.environ "ProgramFiles(x86)" ] ;
141141
vswhere ?= [ os.environ "ProgramFiles" ] ;
142142
vswhere = "$(vswhere)/Microsoft Visual Studio/Installer/vswhere.exe" ;
143-
local vspath = [ SHELL "\"$(vswhere)\" -latest -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64" ] ;
143+
local vspath = [ SHELL "\"$(vswhere)\" -latest -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath" ] ;
144144
.notice "$(arch)-$(addr):" "using VS tools in '$(vspath)'" ;
145145
local msvcpath = [ path.glob [ path.make "$(vspath)\\VC\\Tools\\MSVC" ] : * ] ;
146146
msvcpath = [ path.glob "$(msvcpath[-1])/bin" : Host* ] ;

0 commit comments

Comments
 (0)