mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-17 15:44:18 +08:00
libtcc: Avoid a regression for some usecases
Thanks tylo for hints on the mailing list -- Regards ... Detlef
This commit is contained in:
parent
59aecdb539
commit
f2b9fcf85d
2
libtcc.c
2
libtcc.c
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user