From: Bruno Haible Date: Wed, 9 Oct 2024 01:09:15 +0000 (+0200) Subject: csharpcomp: Behave like csharpcomp-script. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=fba0921ce2eaf6d58e0f80c1245406213e974f45;p=gnulib.git csharpcomp: Behave like csharpcomp-script. * lib/csharpcomp.c (compile_csharp_using_sscli): Pass the option '-nologo' to csc. --- diff --git a/ChangeLog b/ChangeLog index 0206e5bbff..669c70c31d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-10-08 Bruno Haible + + csharpcomp: Behave like csharpcomp-script. + * lib/csharpcomp.c (compile_csharp_using_sscli): Pass the option + '-nologo' to csc. + 2024-10-07 Bruno Haible csharpcomp: Improve Cygwin support. diff --git a/lib/csharpcomp.c b/lib/csharpcomp.c index 71e9633355..28247ed1a7 100644 --- a/lib/csharpcomp.c +++ b/lib/csharpcomp.c @@ -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);