libtcc: Avoid a regression for some usecases

Thanks tylo for hints on the mailing list

--
Regards ... Detlef
This commit is contained in:
Detlef Riekenberg 2025-06-19 03:12:41 +02:00
parent 59aecdb539
commit f2b9fcf85d

View File

@ -2089,7 +2089,7 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int *pargc, char ***pargv)
s->gen_deps = 1;
/* usually, only "-MMD" is used */
/* but the Linux Kernel uses "-MMD,depfile" */
if (optarg)
if ((optarg) && (*optarg != '\0'))
tcc_set_str(&s->deps_outfile, optarg);
break;
case TCC_OPTION_MD: