[Mono-list] Compiling mcs with other C# Compiler
Peter Williams
peter@newton.cx
Sat, 03 Jan 2004 16:48:57 -0500
On Sat, 2004-01-03 at 02:37, Pablo Fischer wrote:
> Hi!
>
> 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
Peter
--
Peter Williams peter@newton.cx
"[Ninjas] are cool; and by cool, I mean totally sweet."
-- REAL Ultimate Power