Reenable dllmap for iOS/Android (#44243)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 4 Nov 2020 13:26:59 +0000 (14:26 +0100)
committerGitHub <noreply@github.com>
Wed, 4 Nov 2020 13:26:59 +0000 (14:26 +0100)
This got lost as part of the CMake conversion but we still need it for these platforms.

Fixes https://github.com/dotnet/runtime/issues/44242

src/mono/CMakeLists.txt

index 8f20ead..bbc2963 100644 (file)
@@ -72,7 +72,6 @@ if(ENABLE_NETCORE)
   set(DISABLE_GAC 1)
   set(DISABLE_PERFCOUNTERS 1)
   set(DISABLE_ATTACH 1)
-  set(DISABLE_DLLMAP 1)
   set(DISABLE_CONFIG 1)
   set(DISABLE_CFGDIR_CONFIG 1)
   set(DISABLE_VERIFIER 1)
@@ -575,6 +574,19 @@ endif()
 ### End of debug build checks
 
 
+######################################
+# OS SPECIFIC CHECKS
+######################################
+if(ENABLE_NETCORE)
+  if(TARGET_IOS OR TARGET_ANDROID)
+    # FIXME: the mobile products use mono_dllmap_insert so allow this
+    unset(DISABLE_DLLMAP)
+  else()
+    set(DISABLE_DLLMAP 1)
+  endif()
+endif()
+### End of OS specific checks
+
 add_subdirectory(mono)
 
 configure_file(cmake/config.h.in config.h)