mirror of
https://github.com/frida/tinycc
synced 2024-12-28 23:59:41 +03:00
warn if multile -o option is given
This commit is contained in:
parent
87a0109604
commit
c497f9c82c
4
libtcc.c
4
libtcc.c
@ -1936,6 +1936,10 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv)
|
||||
s->option_m = tcc_strdup(optarg);
|
||||
break;
|
||||
case TCC_OPTION_o:
|
||||
if (s->outfile) {
|
||||
tcc_warning("multiple -o option");
|
||||
tcc_free(s->outfile);
|
||||
}
|
||||
s->outfile = tcc_strdup(optarg);
|
||||
break;
|
||||
case TCC_OPTION_r:
|
||||
|
Loading…
Reference in New Issue
Block a user