Add missing `clr_unknown_arch()` to clrdefinitions.cmake
authorAndrey Okoshkin <a.okoshkin@samsung.com>
Wed, 31 Jan 2018 15:12:21 +0000 (18:12 +0300)
committerAndrey Okoshkin <a.okoshkin@samsung.com>
Wed, 31 Jan 2018 15:12:21 +0000 (18:12 +0300)
clrdefinitions.cmake

index e077efc168789909bf38b7f6e67f3a359382fc14..97729d60aefe38a72d843f413696784ca2cd8f1f 100644 (file)
@@ -1,3 +1,13 @@
+function(clr_unknown_arch)
+  if (WIN32)
+    message(FATAL_ERROR "Only AMD64, ARM64, ARM and I386 are supported")
+  elseif(CLR_CROSS_COMPONENTS_BUILD)
+    message(FATAL_ERROR "Only AMD64, I386 host are supported for linux cross-architecture component")
+  else()
+    message(FATAL_ERROR "Only AMD64, ARM64 and ARM are supported")
+  endif()
+endfunction()
+
 if (CLR_CMAKE_TARGET_ARCH_AMD64)
   if (CLR_CMAKE_PLATFORM_UNIX)
     add_definitions(-DDBG_TARGET_AMD64_UNIX)