[CMAKE/ARM]
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 26 May 2014 15:31:07 +0000 (15:31 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 26 May 2014 15:31:07 +0000 (15:31 +0000)
* Do not handle hotpatchable images in MSVC ARM builds (the flag is unknown to the compiler).

svn path=/trunk/; revision=63469

reactos/cmake/CMakeMacros.cmake

index f22723b..fcb11db 100644 (file)
@@ -459,7 +459,7 @@ function(set_module_type MODULE TYPE)
 
     # Handle hotpatchable images.
     # GCC has this as a function attribute so we're handling it using DECLSPEC_HOTPATCH
-    if(__module_HOTPATCHABLE AND MSVC)
+    if(__module_HOTPATCHABLE AND MSVC AND (NOT ARCH STREQUAL "arm"))
         set_property(TARGET ${MODULE} APPEND_STRING PROPERTY COMPILE_FLAGS " /hotpatch")
         if(ARCH STREQUAL "i386")
             set_property(TARGET ${MODULE} APPEND_STRING PROPERTY LINK_FLAGS " /FUNCTIONPADMIN:5")