Warn about a conflicting compile options spectified on the command line.
Try "tcc -E -c tccasm.c -o tccasm.o"
This commit is contained in:
4
tcc.c
4
tcc.c
@ -249,7 +249,6 @@ int main(int argc, char **argv)
|
||||
const char *first_file = NULL;
|
||||
|
||||
s = tcc_new();
|
||||
s->output_type = TCC_OUTPUT_EXE;
|
||||
|
||||
optind = tcc_parse_args(s, argc - 1, argv + 1);
|
||||
tcc_set_environment(s);
|
||||
@ -259,6 +258,9 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (s->output_type == 0)
|
||||
s->output_type = TCC_OUTPUT_EXE;
|
||||
|
||||
if (s->option_m)
|
||||
exec_other_tcc(s, argv, s->option_m);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user