>From 5b3286f6bb69abfbeebc693aa75b08205ed739ac Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 9 Oct 2024 03:09:15 +0200 Subject: [PATCH 2/7] csharpcomp: Behave like csharpcomp-script. * lib/csharpcomp.c (compile_csharp_using_sscli): Pass the option '-nologo' to csc. --- ChangeLog | 6 ++++++ lib/csharpcomp.c | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1ddf1e11b6..20c091f007 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-08 Bruno Haible csharpcomp: Fix memory management bug (regression yesterday). 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); -- 2.34.1