[m-rev.] diff: fix csharp grade on MinGW/MSYS

Julien Fischer juliensf at csse.unimelb.edu.au
Thu Feb 16 03:53:45 AEDT 2012


Branches: main, 11.07

Fix compilation of the csharp grade on MinGW/MSYS.

compiler/compile_target_code.m:
 	We still need to do translation of paths for MS C# with MSYS because
 	although the paths that go through make or the shell will be translated for us,
 	the argument of calls to system will have no such translation done.

Julien.

Index: compiler/compile_target_code.m
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/compiler/compile_target_code.m,v
retrieving revision 1.186
diff -u -r1.186 compile_target_code.m
--- compiler/compile_target_code.m	10 Feb 2012 03:59:15 -0000	1.186
+++ compiler/compile_target_code.m	15 Feb 2012 16:43:46 -0000
@@ -2923,8 +2923,8 @@
  csharp_file_name(env_type_cygwin, csharp_mono, Filename) = Filename.
  csharp_file_name(env_type_cygwin, csharp_unknown, Filename) = Filename.

-    % MSYS converts the path for us to the windows format.
-csharp_file_name(env_type_msys, csharp_microsoft, Filename) = Filename. 
+csharp_file_name(env_type_msys, csharp_microsoft, Filename) = 
+    convert_to_windows_path_format(Filename).
  csharp_file_name(env_type_msys, csharp_mono, Filename) = Filename.
  csharp_file_name(env_type_msys, csharp_unknown, Filename) = Filename.


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