accomodate _DIRS with multiple paths on windows
@@ -653,7 +653,10 @@ function _Add-Paths($fromFile) {
if (Test-Path "$dep_path/$fromFile") {
Push-Location $originalPath
try {
- $data = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath((Get-Content "$dep_path/$fromFile").Trim())
+ $paths = (Get-Content "$dep_path/$fromFile").Trim().Split(";")
+
+ foreach($path in $paths) {
+ $data = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($path)
if (!$path_part) {
$path_part = $data
}
@@ -661,6 +664,7 @@ function _Add-Paths($fromFile) {
$path_part += ";$data"
}
}
+ }
finally { Pop-Location }
}
}
@@ -697,6 +701,8 @@ function _Set-Path {
}
Write-BuildLine "Setting PATH=$env:PATH"
+ Write-BuildLine "Setting LIB=$env:LIB"
+ Write-BuildLine "Setting INCLUDE=$env:INCLUDE"
}
function _Get-SHA256Converter {
