[Mono-list] Compiling mcs with other C# Compiler
Miguel de Icaza
Sat, 03 Jan 2004 17:44:24 -0500
> > I have a problem. I have officially mono and mcs compiled with the
> > lastest CVS version (Friday 2nd), however, I'd like to compile other mcs
> > and mono versions (.28), so, how can I compile mcs (.28) with another
> > mcs.exe?.
> The MCS build system uses two variables that will be of interest to you:
> BOOTSTRAP_MCS, which is used to compile the new mcs and corlib, and MCS,
> which is used to compile the rest of the libraries. MCS is in turn
> defined in terms of INTERNAL_MCS, which is the mcs.exe compiled while
> building the class libraries.
> Anyway, all you should need to do is set those variables and you should
> be good to go. You may also need to set the RUNTIME variable if you want
> to use a specific version of the mono runtime.
> $ make MCS=/path/to/my/mcs.exe BOOTSTRAP_MCS=/path/to/my/mcs.exe
> You might make a build profile out of that setup by creating a make
> fragment in mcs/build/profiles/myprofile.make that sets the variables
> that you need; then you can just do
> $ make PROFILE=myprofile
Also, you can use:
Which will always use the installed MCS and existing libraries to
compile the runtime.