]> Savannah Git Hosting - gnulib.git/commitdiff
csharpcomp: Behave like csharpcomp-script.
authorBruno Haible <bruno@clisp.org>
Wed, 9 Oct 2024 01:09:15 +0000 (03:09 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 16 Oct 2024 12:03:58 +0000 (14:03 +0200)
* lib/csharpcomp.c (compile_csharp_using_sscli): Pass the option
'-nologo' to csc.

ChangeLog
lib/csharpcomp.c

index 0206e5bbff389352b8ca02e415eedc706c82f2f4..669c70c31d2d3ea8e16a54ee47af6913d66e0343 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-10-08  Bruno Haible  <bruno@clisp.org>
+
+       csharpcomp: Behave like csharpcomp-script.
+       * lib/csharpcomp.c (compile_csharp_using_sscli): Pass the option
+       '-nologo' to csc.
+
 2024-10-07  Bruno Haible  <bruno@clisp.org>
 
        csharpcomp: Improve Cygwin support.
index 71e96333555af467ef8132a5a54bc9d4667d8534..28247ed1a782878b00c274fa35c1119afc387eec 100644 (file)
@@ -328,12 +328,13 @@ compile_csharp_using_sscli (const char * const *sources,
       mallocedp = malloced;
 
       argc =
-        1 + 1 + 1 + libdirs_count + libraries_count
+        2 + 1 + 1 + libdirs_count + libraries_count
         + (optimize ? 1 : 0) + (debug ? 1 : 0) + sources_count;
       argv = (const char **) xmalloca ((argc + 1) * sizeof (const char *));
 
       argp = argv;
       *argp++ = "csc";
+      *argp++ = "-nologo";
       *argp++ = (output_is_library ? "-target:library" : "-target:exe");
       {
         char *output_file_converted = cygpath_w (output_file);
@@ -402,7 +403,7 @@ compile_csharp_using_sscli (const char * const *sources,
                             false, false, false, false,
                             true, true, NULL);
 
-      for (i = 2; i < 3 + libdirs_count + libraries_count; i++)
+      for (i = 3; i < 4 + libdirs_count + libraries_count; i++)
         freea ((char *) argv[i]);
       while (mallocedp > malloced)
         free (*--mallocedp);