[m-rev.] diff: don't generate wrapper scripts for csharp on Windows

Julien Fischer juliensf at csse.unimelb.edu.au
Mon Jan 31 17:30:09 AEDT 2011


Branches: main, 11.01

compiler/compile_target_code.m:
 	Only generate a wrapper script for executables built in the
 	csharp grade on non-Windows systems.

Julien.

Index: compiler/compile_target_code.m
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/compiler/compile_target_code.m,v
retrieving revision 1.164
diff -u -r1.164 compile_target_code.m
--- compiler/compile_target_code.m	9 Jan 2011 14:56:11 -0000	1.164
+++ compiler/compile_target_code.m	31 Jan 2011 06:26:43 -0000
@@ -2626,11 +2626,13 @@
          Succeeded0, !IO),

      % Also create a shell script to launch it if necessary.
+    globals.get_target_env_type(Globals, TargetEnvType),
+    globals.lookup_string_option(Globals, cli_interpreter, CLI),
      (
          Succeeded0 = yes,
          LinkTargetType = csharp_executable,
-        globals.lookup_string_option(Globals, cli_interpreter, CLI),
-        CLI \= ""
+        CLI \= "",
+        TargetEnvType = env_type_posix
      ->
          create_launcher_shell_script(Globals, MainModuleName,
              write_cli_shell_script(Globals, OutputFileName),

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