2009-12-02 Marek Safar <marek.safar@gmail.com>
authorMarek Safar <marek.safar@gmail.com>
Wed, 2 Dec 2009 11:16:20 +0000 (11:16 -0000)
committerMarek Safar <marek.safar@gmail.com>
Wed, 2 Dec 2009 11:16:20 +0000 (11:16 -0000)
* common/basic-profile-check.cs: Bump bootstrap requirement to Mono
2.4+.

svn path=/trunk/mcs/; revision=147415

mcs/build/ChangeLog
mcs/build/common/basic-profile-check.cs

index 27cf43c53f77a45eafd907c5a6c6da067eba4c4c..606d81c3d4359334ca6bf24f494076db1212d930 100644 (file)
@@ -1,3 +1,8 @@
+2009-12-02  Marek Safar  <marek.safar@gmail.com>
+
+       * common/basic-profile-check.cs: Bump bootstrap requirement to Mono
+       2.4+.
+
 2009-11-17  Marek Habersack  <mhabersack@novell.com>
 
        * tests.make (TEST_RUNTIME_WRAPPERS_PATH): added - used to set up
index 4354789a24ca0b3ea05153a499faf1391db3ab79..dd104e32fa3fd67a3ac0c01570564eef25368490 100644 (file)
@@ -5,8 +5,13 @@ class X {
        static int Main ()
        {
                // Check installed mscorlib
-               // Type is included in Mono 2.0+, and .NET 2.0 SP1+
-               object o = typeof (System.Runtime.GCLatencyMode);
+               // Type is included in Mono 2.4+, and .NET 3.5 SP1
+               object o = typeof (System.Runtime.InteropServices.AllowReversePInvokeCallsAttribute);
+               
+               // It should crash but double check it in case of very old old runtime
+               if (o == null)
+                       return 1;
+
                return 0;
        }
 }