Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,14 @@ namespace NativeMsh
std::wstring coreClrDirTag(L"CORECLRDIR=");
while (std::getline(psConfigFile, line))
{
;

// Search for the first actionable character in the line to
// limit the number of passes that are made iterating through the line.
for(std::wstring::const_iterator iter = line.begin(); iter != line.end(); iter++)
{
if (*iter == L'#')
{
// Stop parsing the line because the rest of it is a comment
continue;
break;
}
else if (*iter == L'p' || *iter == L'P')
{
Expand All @@ -57,6 +55,7 @@ namespace NativeMsh
this->pathToPowerShellAssemblies.append(L"\\");
}
}
break;
}
else if (*iter == L'c' || *iter == L'C')
{
Expand All @@ -71,6 +70,7 @@ namespace NativeMsh
this->coreClrDirectory.append(L"\\");
}
}
break;
}
// Else: Do nothing to ignore unmatched characters (whitespace, etc.)
}
Expand Down