Merge pull request #1490 from PowerShell/mirichmo/pwrshplugin-optimization-and-build-fix

Fixing bug in pwrshplugin config file reader and wrapping mc.exe call…
This commit is contained in:
Mike Richmond authored and GitHub committed 2016-07-25 09:00:32 -07:00
commit 0d49cb8aa5
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 }
}
}