From 7a6d89192abe31a9e2edd5b6f20c936b2d1c5084 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 8 Mar 2024 23:02:34 +0000 Subject: slbt_exec_link_adjust_argument_vector(): support comment lines. --- src/logic/linkcmd/slbt_linkcmd_argv.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/logic/linkcmd') diff --git a/src/logic/linkcmd/slbt_linkcmd_argv.c b/src/logic/linkcmd/slbt_linkcmd_argv.c index e4f0d12..a0c342c 100644 --- a/src/logic/linkcmd/slbt_linkcmd_argv.c +++ b/src/logic/linkcmd/slbt_linkcmd_argv.c @@ -525,9 +525,11 @@ slbt_hidden int slbt_exec_link_adjust_argument_vector( depsmeta, SLBT_NESTED_ERROR(dctx)); - *aarg++ = darg; - mark = darg; + if (darg[0] != '#') { + *aarg++ = darg; + } + mark = darg; dlen = strlen(darg); size -= dlen; darg += dlen; -- cgit v1.2.3