[m-rev.] diff: make stdlib compile in csharp grade with csc

Julien Fischer juliensf at csse.unimelb.edu.au
Tue Feb 1 14:51:09 AEDT 2011


On Tue, 1 Feb 2011, Peter Wang wrote:

> On 2011-02-01, Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
>> Index: library/Mmakefile
>> ===================================================================
>> RCS file: /home/mercury/mercury1/repository/mercury/library/Mmakefile,v
>> retrieving revision 1.177
>> diff -u -r1.177 Mmakefile
>> --- library/Mmakefile	27 Jan 2011 02:32:39 -0000	1.177
>> +++ library/Mmakefile	31 Jan 2011 15:11:00 -0000
>> @@ -373,8 +373,13 @@
>>  # For C# we include the runtime module directly into mer_std.dll.
>>  ifneq ("$(filter csharp%,$(GRADE))","")
>>  LINK_LIB_OPTS :=
>> +# Don't use Unix style paths with the Microsoft C# compiler.
>> +ifeq ($(CSC),csc)
>> +MLOBJS += ..\runtime\mercury_dotnet.cs
>> +else
>>  MLOBJS += ../runtime/mercury_dotnet.cs
>>  endif
>> +endif
>
> What if $CSC is a full path?

It doesn't yet handle that case, but as compilation doesn't proceed
beyond the mdbcomp library with csc that's not so important yet.

Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list