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/vm/crossgen | |
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/vm/crossgen')
-rw-r--r-- | src/vm/crossgen/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vm/crossgen/CMakeLists.txt b/src/vm/crossgen/CMakeLists.txt index c27cb82831..e1fb8c7ef6 100644 --- a/src/vm/crossgen/CMakeLists.txt +++ b/src/vm/crossgen/CMakeLists.txt @@ -109,6 +109,11 @@ if(CLR_CMAKE_PLATFORM_ARCH_AMD64) list(APPEND VM_CROSSGEN_SOURCES ../amd64/stublinkeramd64.cpp ) +elseif(CLR_CMAKE_PLATFORM_ARCH_I386) + include_directories(../i386) + list(APPEND VM_CROSSGEN_SOURCES + ../i386/stublinkerx86.cpp + ) elseif(CLR_CMAKE_PLATFORM_ARCH_ARM) include_directories(../arm) list(APPEND VM_CROSSGEN_SOURCES @@ -120,7 +125,7 @@ elseif(CLR_CMAKE_PLATFORM_ARCH_ARM64) ../arm64/stubs.cpp ) else() - message(FATAL_ERROR "Only ARM, ARM64 and AMD64 is supported") + clr_unknown_arch() endif() if (WIN32) |