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

Julien Fischer juliensf at csse.unimelb.edu.au
Tue Feb 1 02:20:55 AEDT 2011


Branches: main, 11.01

Make the standard library build in the csharp grade with the Microsoft C#
compiler.

library/Mmakefile:
 	Don't use Unix style paths with csc.

Julien.

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

  #-----------------------------------------------------------------------------#


--------------------------------------------------------------------------
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