Merge pull request #1487 from Sridhar-MS/cli-x86
Fixes in corehost for building x86 arch.
This commit is contained in:
commit
856a077bd1
3 changed files with 14 additions and 3 deletions
|
@ -199,6 +199,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)
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
static pal::dll_t g_coreclr = nullptr;
|
||||
|
||||
// Prototype of the coreclr_initialize function from coreclr.dll
|
||||
typedef pal::hresult_t(*coreclr_initialize_fn)(
|
||||
typedef pal::hresult_t(STDMETHODCALLTYPE *coreclr_initialize_fn)(
|
||||
const char* exePath,
|
||||
const char* appDomainFriendlyName,
|
||||
int propertyCount,
|
||||
|
@ -19,12 +19,12 @@ typedef pal::hresult_t(*coreclr_initialize_fn)(
|
|||
unsigned int* domainId);
|
||||
|
||||
// Prototype of the coreclr_shutdown function from coreclr.dll
|
||||
typedef pal::hresult_t(*coreclr_shutdown_fn)(
|
||||
typedef pal::hresult_t(STDMETHODCALLTYPE *coreclr_shutdown_fn)(
|
||||
coreclr::host_handle_t hostHandle,
|
||||
unsigned int domainId);
|
||||
|
||||
// Prototype of the coreclr_execute_assembly function from coreclr.dll
|
||||
typedef pal::hresult_t(*coreclr_execute_assembly_fn)(
|
||||
typedef pal::hresult_t(STDMETHODCALLTYPE *coreclr_execute_assembly_fn)(
|
||||
coreclr::host_handle_t hostHandle,
|
||||
unsigned int domainId,
|
||||
int argc,
|
||||
|
|
|
@ -77,6 +77,8 @@ namespace pal
|
|||
#define SHARED_API
|
||||
#endif
|
||||
|
||||
#define STDMETHODCALLTYPE __stdcall
|
||||
|
||||
typedef wchar_t char_t;
|
||||
typedef std::wstring string_t;
|
||||
typedef std::wstringstream stringstream_t;
|
||||
|
@ -107,6 +109,11 @@ namespace pal
|
|||
#define SHARED_API
|
||||
#endif
|
||||
|
||||
#define __cdecl /* nothing */
|
||||
#define __stdcall /* nothing */
|
||||
#define __fastcall /* nothing */
|
||||
#define STDMETHODCALLTYPE __stdcall
|
||||
|
||||
typedef char char_t;
|
||||
typedef std::string string_t;
|
||||
typedef std::stringstream stringstream_t;
|
||||
|
|
Loading…
Add table
Reference in a new issue