[Mono-devel-list] [Patch] Pass CompilerOptions

Juraj Skripsky js at hotfeet.ch
Mon Oct 4 19:23:49 EDT 2004


Hello Marek,

Yes, you're right. Sorry about that! Stupid me...

- Juraj

On Tue, 2004-10-05 at 00:54, Marek Safar wrote:
> Hello Juraj,
> 
> I think this issue has been already fixed. Please check the latest sources.
> 
> Marek
> 
> >This time even with the patch included....
> >-----
> >
> >Hi,
> >
> >In CSharpCodeCompiler.cs, the CompilerOptions are not being passed down
> >to the compiler. The attached patch fixes this.
> >
> >May I commit to head and/or 1.0?
> >
> >- Juraj
> >  
> >
> >------------------------------------------------------------------------
> >
> >Index: CSharpCodeCompiler.cs
> >===================================================================
> >RCS file: /cvs/public/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs,v
> >retrieving revision 1.19
> >diff -u -r1.19 CSharpCodeCompiler.cs
> >--- CSharpCodeCompiler.cs	22 Jul 2004 17:36:52 -0000	1.19
> >+++ CSharpCodeCompiler.cs	4 Oct 2004 12:38:51 -0000
> >@@ -222,6 +222,9 @@
> > 				foreach (string import in options.ReferencedAssemblies)
> > 					args.AppendFormat("/r:\"{0}\" ",import);
> > 			}
> >+
> >+			if (options.CompilerOptions != null)
> >+				args.Append(options.CompilerOptions);
> > 			
> > 			args.Append (" -- ");
> > 			foreach (string source in fileNames)
> >Index: ChangeLog
> >===================================================================
> >RCS file: /cvs/public/mcs/class/System/Microsoft.CSharp/ChangeLog,v
> >retrieving revision 1.52
> >diff -u -r1.52 ChangeLog
> >--- ChangeLog	14 Sep 2004 08:21:21 -0000	1.52
> >+++ ChangeLog	4 Oct 2004 12:38:51 -0000
> >@@ -1,3 +1,7 @@
> >+2004-10-04 Juraj Skripsky <js at hotfeet.ch>
> >+
> >+	* CSharpCodeCompiler.cs (BuildArgs): Pass CompilerOptions to compiler.
> >+
> > 2004-09-14 Marek Safar <marek.safar at seznam.cz>
> > 
> > 	* CSharpCodeGenerator.cs: Fix #65854
> >  
> >




More information about the Mono-devel-list mailing list