Fixing bug in pwrshplugin config file reader and wrapping mc.exe calls in vcvarsall.bat.

This commit is contained in:
Mike Richmond committed 2016-07-22 15:04:46 -07:00
1 parent 5cec5f1b04
commit 156418ceab
2 files changed
+8 -4

No files matched your search

+5 -1
View File
@@ -262,7 +262,11 @@ function Start-PSBuild {
@("nativemsh/pwrshplugin") | % {
$nativeResourcesFolder = $_
Get-ChildItem $nativeResourcesFolder -Filter "*.mc" | % {
Start-NativeExecution { & $mcexe -o -d -c -U $_.FullName -h "$nativeResourcesFolder" -r "$nativeResourcesFolder" }
$command = @"
cmd.exe /C cd /d "(Get-Location)" "&" "$($vcVarsPath)\vcvarsall.bat" "$NativeHostArch" "&" "$mcexe" -o -d -c -U $($_.FullName) -h "$nativeResourcesFolder" -r "$nativeResourcesFolder"
"@
log " Executing mc.exe Command: $command"
Start-NativeExecution { Invoke-Expression -Command:$command }
}
}