accept option -x <lang>

This commit is contained in:
grischka 2009-06-17 02:11:27 +02:00
parent 610fd47510
commit c4b7e77bbe

4
tcc.c
View File

@ -111,6 +111,7 @@ enum {
TCC_OPTION_w,
TCC_OPTION_pipe,
TCC_OPTION_E,
TCC_OPTION_x,
};
static const TCCOption tcc_options[] = {
@ -148,6 +149,7 @@ static const TCCOption tcc_options[] = {
{ "w", TCC_OPTION_w, 0 },
{ "pipe", TCC_OPTION_pipe, 0},
{ "E", TCC_OPTION_E, 0},
{ "x", TCC_OPTION_x, TCC_OPTION_HAS_ARG },
{ NULL },
};
@ -402,6 +404,8 @@ int parse_args(TCCState *s, int argc, char **argv)
case TCC_OPTION_E:
output_type = TCC_OUTPUT_PREPROCESS;
break;
case TCC_OPTION_x:
break;
default:
if (s->warn_unsupported) {
unsupported_option: