[Monodevelop-patches-list] r1594 - trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sat May 8 17:25:09 EDT 2004


Author: tberman
Date: 2004-05-08 17:25:08 -0400 (Sat, 08 May 2004)
New Revision: 1594

Modified:
   trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs
   trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/ChangeLog
Log:
emit proper makefiles for unsafe code.


Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs	2004-05-07 21:55:35 UTC (rev 1593)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs	2004-05-08 21:25:08 UTC (rev 1594)
@@ -412,11 +412,18 @@
 			stream.WriteLine ("PROJECT_REFERENCES_BUILD = $(addprefix /r:, $(PROJECT_REFERENCES))");
 			stream.WriteLine ();
 
+			stream.Write ("MCS_OPTIONS = ");
+			if (compilerparameters.UnsafeCode) {
+				stream.Write ("/unsafe ");
+			}
+			stream.WriteLine ();
+			stream.WriteLine ();
+
 			stream.WriteLine ("all: " + outputName);
 			stream.WriteLine ();
 			
 			stream.WriteLine (outputName + ": $(SOURCES) $(RESOURCES)");
-			stream.WriteLine ("\tmcs /target:{0} /out:{1} $(RESOURCES_BUILD) $(GAC_REFERENCES_BUILD) $(ASSEMBLY_REFERENCES_BUILD) $(PROJECT_REFERENCES_BUILD) $(SOURCES)", target, outputName);
+			stream.WriteLine ("\tmcs $(MCS_OPTIONS) /target:{0} /out:{1} $(RESOURCES_BUILD) $(GAC_REFERENCES_BUILD) $(ASSEMBLY_REFERENCES_BUILD) $(PROJECT_REFERENCES_BUILD) $(SOURCES)", target, outputName);
 
 			stream.WriteLine ();
 			stream.WriteLine ("clean:");

Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/ChangeLog	2004-05-07 21:55:35 UTC (rev 1593)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/ChangeLog	2004-05-08 21:25:08 UTC (rev 1594)
@@ -1,3 +1,7 @@
+2004-05-08  Todd Berman  <tberman at sevenl.net>
+
+	* CSharpBindingCompilerManager.cs: output /unsafe properly.
+
 2004-04-29  Todd Berman  <tberman at sevenl.net>
 
 	* CSharpBindingCompilerManager.cs: add a clean target




More information about the Monodevelop-patches-list mailing list