[runtime] Get ilasm.exe compiling with mobile_static
authorAlexander Kyte <alexmkyte@gmail.com>
Wed, 13 Jul 2016 20:57:18 +0000 (16:57 -0400)
committerAlexander Kyte <alexmkyte@gmail.com>
Mon, 18 Jul 2016 19:03:36 +0000 (15:03 -0400)
mcs/class/Makefile
mcs/class/Mono.CompilerServices.SymbolWriter/SymbolWriterImpl.cs
mcs/ilasm/scanner/InstrToken.cs

index 4f4528e4ee3749a9692683963aadbd72f6f20a53..f991a2280b545410788abb1cf9d04af7b3db9dc8 100644 (file)
@@ -64,6 +64,8 @@ mobile_common_dirs := \
 mobile_static_dirs := \
        $(mobile_common_dirs)   \
        Mono.Dynamic.Interpreter        \
+       PEAPI   \
+       Mono.CompilerServices.SymbolWriter      \
        $(pcl_facade_dirs)
 
 mobile_dynamic_dirs := \
index a1fd0f918a6735eefede4e9d1892633c0782b9d9..0b25cd7cf5e2338315338b5c3924f2c9cde4cbc0 100644 (file)
@@ -50,7 +50,7 @@ namespace Mono.CompilerServices.SymbolWriter
 
                Hashtable documents = new Hashtable ();
 
-#if !CECIL
+#if !CECIL && !MOBILE
                ModuleBuilder mb;
                delegate Guid GetGuidFunc (ModuleBuilder mb);
                GetGuidFunc get_guid_func;
index edd6db37398d6b56afa7d9a3d181142b0605c9c8..bc78f97fd18fdcc0b5dac527f8f4c7aed782533e 100644 (file)
@@ -1,6 +1,8 @@
 // InstrToken.cs\r
 // Author: Sergey Chaban (serge@wildwestsoftware.com)\r
 \r
+#if !MOBILE\r
+\r
 using System;\r
 using System.Reflection.Emit;\r
 \r
@@ -103,3 +105,5 @@ namespace Mono.ILASM {
        }\r
 \r
 }\r
+\r
+#endif\r