2001-11-08 Nick Drochak <ndrochak@gol.com>
authorNick Drochak <nickd@mono-cvs.ximian.com>
Wed, 7 Nov 2001 23:29:11 +0000 (23:29 -0000)
committerNick Drochak <nickd@mono-cvs.ximian.com>
Wed, 7 Nov 2001 23:29:11 +0000 (23:29 -0000)
* corlib.build: build a corlib that can be linked against the nunit
test dll's when linux is the target (just like windows).

Added /nowarn 0649 and 0169 to cut down on the compiler noise for
all the unused fields we have in the stubs.

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

mcs/class/corlib/corlib.build

index dae52342c8b012886469a8a1f59166d9a3f21529..f4690516eca54ef86f607f330ed2b678770a26ca 100644 (file)
@@ -11,6 +11,8 @@
                <mkdir dir="../lib"/>
                <csc target="library" output="../lib/corlib.dll" debug="${debug}">
                        <arg value="/nowarn:1595"/>
+                       <arg value="/nowarn:0649"/> <!-- field never assigned to -->
+                       <arg value="/nowarn:0169"/> <!-- field never used -->
                        <arg value="/unsafe"/>
                        <sources>
                                <includes name="**/*.cs"/> 
@@ -21,6 +23,8 @@
                </csc>
                <csc target="library" output="Test/corlib_res.dll" debug="${debug}">
                        <arg value="/nowarn:1595"/>
+                       <arg value="/nowarn:0649"/> <!-- field never assigned to -->
+                       <arg value="/nowarn:0169"/> <!-- field never used -->
                        <arg value="/unsafe"/>
                        <sources>
                                <includes name="**/*.cs"/>
                                <excludes name="System.PAL/IOperatingSystem.cs"/>
                        </sources>
                </csc>
-               <copy file="../lib/corlib.dll" tofile="Test/corlib_res.dll"/>
+               <!-- NUnit can only run under windows right now, so build for windows
+                       even though this is inside the linux target -->
+               <csc target="library" output="Test/corlib_res.dll" debug="${debug}">
+                       <arg value="/nowarn:1595"/>
+                       <arg value="/nowarn:0649"/> <!-- field never assigned to -->
+                       <arg value="/nowarn:0169"/> <!-- field never used -->
+                       <arg value="/unsafe"/>
+                       <sources>
+                               <includes name="**/*.cs"/>
+                               <excludes name="Test/**"/>
+                               <excludes name="Linux/**"/>
+                               <excludes name="System/Object.cs"/>
+                               <excludes name="System/ValueType.cs"/>
+                               <excludes name="System/Type.cs"/>
+                               <excludes name="System/Array.cs"/>
+                               <excludes name="System/String.cs"/>
+                               <excludes name="System/Console.cs"/>
+                               <excludes name="System/AppDomain.cs"/>
+                               <excludes name="System.Reflection.Emit/**"/>
+                               <excludes name="System/RuntimeTypeHandle.cs"/>
+                               <excludes name="System.PAL/IOperatingSystem.cs"/>
+                               <excludes name="System.Collections/Queue.cs"/>
+                       </sources>
+               </csc>
                <nant basedir="Test" target="build"/>
        </target>