Build Hostx86/arm32 crossgen when CROSSCOMPILE is "1" and Hostx64/arm32 crossgen...
authorEgor Chesakov <Egor.Chesakov@microsoft.com>
Fri, 17 Aug 2018 20:52:14 +0000 (13:52 -0700)
committerEgor Chesakov <Egor.Chesakov@microsoft.com>
Mon, 10 Sep 2018 22:42:43 +0000 (15:42 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/1e7a3d97ffba7d5721112fd451a6f4cd41a9b5d2

src/coreclr/configurecompiler.cmake

index 2d1672b..7ee19ba 100644 (file)
@@ -9,7 +9,11 @@ if(CMAKE_SYSTEM_NAME STREQUAL Linux)
         # CMAKE_HOST_SYSTEM_PROCESSOR returns the value of `uname -p` on host.
         if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL x86_64 OR CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL amd64)
             if(CLR_CMAKE_TARGET_ARCH STREQUAL "arm")
-                set(CLR_CMAKE_PLATFORM_UNIX_X86 1)
+                if($ENV{CROSSCOMPILE} STREQUAL "1")
+                    set(CLR_CMAKE_PLATFORM_UNIX_X86 1)
+                else()
+                    set(CLR_CMAKE_PLATFORM_UNIX_AMD64 1)
+                endif()
             else()
                 set(CLR_CMAKE_PLATFORM_UNIX_AMD64 1)
             endif()