diff options
author | Mike Danes <onemihaid@hotmail.com> | 2015-08-01 11:04:16 +0300 |
---|---|---|
committer | Mike Danes <onemihaid@hotmail.com> | 2015-08-04 11:00:34 +0300 |
commit | 8bb8ed66e4e54270e18e68c37515f21730c82cea (patch) | |
tree | a8f713371002b0a037965b4020ffd254a1de73aa /src/debug/di | |
parent | fd1fbb93e8435c371dea39f16c0cf6d030b8c7dd (diff) | |
download | coreclr-8bb8ed66e4e54270e18e68c37515f21730c82cea.tar.gz coreclr-8bb8ed66e4e54270e18e68c37515f21730c82cea.tar.bz2 coreclr-8bb8ed66e4e54270e18e68c37515f21730c82cea.zip |
Enable the Windows x86 build
This allows building the Windows x86 version of CoreCLR by using "x86" for the BuildArch parameter of build.cmd. Note that CMAKE_SYSTEM_PROCESSOR is no longer used in Windows builds to set IS_64BIT_BUILD.
This change is enough to get CoreCLR to build but more changes are required for it to actually run correctly. In particular, the JIT compiler support for x86 is pretty limited at this point.
Diffstat (limited to 'src/debug/di')
-rw-r--r-- | src/debug/di/CMakeLists.txt | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/debug/di/CMakeLists.txt b/src/debug/di/CMakeLists.txt index 1c9125adce..17b737107d 100644 --- a/src/debug/di/CMakeLists.txt +++ b/src/debug/di/CMakeLists.txt @@ -3,6 +3,11 @@ if(CLR_CMAKE_PLATFORM_ARCH_AMD64) add_definitions(-DDBG_TARGET_64BIT) add_definitions(-DDBG_TARGET_WIN64=1) add_definitions(-DDBG_TARGET_AMD64=1) +elseif(CLR_CMAKE_PLATFORM_ARCH_I386) + add_definitions(-D_TARGET_X86_=1) + add_definitions(-DDBG_TARGET_32BIT) + add_definitions(-DDBG_TARGET_WIN32=1) + add_definitions(-DDBG_TARGET_X86=1) elseif(CLR_CMAKE_PLATFORM_ARCH_ARM) add_definitions(-D_TARGET_WIN32_=1) add_definitions(-DDBG_TARGET_32BIT) @@ -14,7 +19,7 @@ elseif(CLR_CMAKE_PLATFORM_ARCH_ARM64) add_definitions(-DDBG_TARGET_WIN64=1) add_definitions(-DDBG_TARGET_ARM64=1) else() - message(FATAL_ERROR "Only ARM, ARM64 and AMD64 is supported") + clr_unknown_arch() endif() add_definitions(-DFEATURE_METADATA_CUSTOM_DATA_SOURCE -DFEATURE_METADATA_DEBUGGEE_DATA_SOURCE -DFEATURE_NO_HOST -DFEATURE_METADATA_LOAD_TRUSTED_IMAGES) @@ -53,10 +58,12 @@ if(WIN32) #use static crt add_definitions(-MT) - set(CORDBDI_SOURCES - ${CORDBDI_SOURCES} - amd64/floatconversion.asm - ) + if (CLR_CMAKE_PLATFORM_ARCH_AMD64) + set(CORDBDI_SOURCES + ${CORDBDI_SOURCES} + amd64/floatconversion.asm + ) + endif() elseif(CLR_CMAKE_PLATFORM_UNIX) add_compile_options(-fPIC) |