Fixes in corehost for building x86 arch.
Set the calling convention to '__stdcall' explicitly else the default is '_cdecl' on windows which mismatches with coreclr hosting APIs. Use the newly built 'corehost' in stage1.
This commit is contained in:
parent
61489aef6c
commit
f96ac6ed92
2 changed files with 7 additions and 3 deletions
|
@ -195,6 +195,10 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
}
|
||||
}
|
||||
|
||||
// dotnet.exe is from stage0. But we must be using the newly built corehost in stage1
|
||||
File.Delete(Path.Combine(binDir, $"dotnet{Constants.ExeSuffix}"));
|
||||
File.Copy(Path.Combine(binDir, $"corehost{Constants.ExeSuffix}"), Path.Combine(binDir, $"dotnet{Constants.ExeSuffix}"));
|
||||
|
||||
// Crossgen Roslyn
|
||||
var result = Crossgen(c, binDir);
|
||||
if (!result.Success)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue