[MonoDevelop] MonoDevelop.Autotools addin?
Vasili I. Galchin
vigalchin at gmail.com
Mon Mar 8 18:58:13 EST 2010
Here is my F# version of GetCompilerName:
static string GetCompilerName (TargetRuntime runtime,
TargetFramework fx)
{
string fsc = runtime.GetToolPath (fx, "fsc");
if (fsc != null)
return fsc;
else {
string message = GettextCatalog.GetString
("F# compiler not found for {0}.", fx.Name);
LoggingService.LogError (message);
throw new Exception (message);
}
}
Looks good to me ..... Agree??
Regards,
Vasili
On Mon, Mar 8, 2010 at 5:31 PM, Lluis Sanchez Gual
<slluis.devel at gmail.com>wrote:
> El dl 08 de 03 de 2010 a les 16:30 -0600, en/na Vasili I. Galchin va
> escriure:
> > Hi Mike,
> >
> > I am getting my F# addin to the point where I can attempt to do
> > a "Build". When I select "Build", I get the wrong path for the F#
> > compiler:
> >
> >
> > INFO [2010-03-08 16:09:35Z]: /usr/bin/gmcs
> > "/out:/home/vasili/Projects/Console10/Console10/bin/Debug/Console10.exe"
> > "/r:System.dll"
> > /nologo
> > /warn:4
> > /debug:+
> > /debug:full
> > /optimize-
> > /codepage:utf8
> > "/define:DEBUG"
> >
> > /t:exe
> > "/home/vasili/Projects/Console10/Console10/Main.fs"
> >
> >
> > I did the time-honored brute force software engineering
> > technique ....... i.e. find/grep ... searching for the C# compiler
> > gmcs ;^). I found a likely ref to "gmcs" in
> > CSharpBinding/Autotools/CSharpAutotoolsSetup.cs.
>
> That's unrelated to your problem. See GetCompilerName in
> CSharpBindingCompilerManager. That's where the compiler is looked up in
> the c# binding. You'd have to replace csc by fsc.
>
> Lluis.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20100308/ee2ffd66/attachment.html
More information about the Monodevelop-list
mailing list