Skip to content

Commit 2b4b621

Browse files
committed
Handle backslashes in fix-vs.ps
1 parent fc58457 commit 2b4b621

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/fix-vs.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ if (-Not (Test-Path $llvmExportsPath)) {
1414
}
1515

1616
# Regex to match typical VS install paths (e.g., C:/Program Files/Microsoft Visual Studio/2022/Enterprise/)
17-
$vsPathPattern = "C:/Program Files/Microsoft Visual Studio/[0-9]+/[A-Za-z]+/"
18-
17+
$vsPathPattern = "C:[\\/]Program Files[\\/]Microsoft Visual Studio[\\/]([0-9]+)[\\/]([A-Za-z]+)[\\/]"
1918
# Read the contents of the LLVMExports.cmake file
2019
$fileContent = Get-Content -Path $llvmExportsPath -Raw
2120

0 commit comments

Comments
 (0)