accept option -x <lang>
This commit is contained in:
parent
610fd47510
commit
c4b7e77bbe
1 changed files with 4 additions and 0 deletions
4
tcc.c
4
tcc.c
|
@ -111,6 +111,7 @@ enum {
|
||||||
TCC_OPTION_w,
|
TCC_OPTION_w,
|
||||||
TCC_OPTION_pipe,
|
TCC_OPTION_pipe,
|
||||||
TCC_OPTION_E,
|
TCC_OPTION_E,
|
||||||
|
TCC_OPTION_x,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const TCCOption tcc_options[] = {
|
static const TCCOption tcc_options[] = {
|
||||||
|
@ -148,6 +149,7 @@ static const TCCOption tcc_options[] = {
|
||||||
{ "w", TCC_OPTION_w, 0 },
|
{ "w", TCC_OPTION_w, 0 },
|
||||||
{ "pipe", TCC_OPTION_pipe, 0},
|
{ "pipe", TCC_OPTION_pipe, 0},
|
||||||
{ "E", TCC_OPTION_E, 0},
|
{ "E", TCC_OPTION_E, 0},
|
||||||
|
{ "x", TCC_OPTION_x, TCC_OPTION_HAS_ARG },
|
||||||
{ NULL },
|
{ NULL },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -402,6 +404,8 @@ int parse_args(TCCState *s, int argc, char **argv)
|
||||||
case TCC_OPTION_E:
|
case TCC_OPTION_E:
|
||||||
output_type = TCC_OUTPUT_PREPROCESS;
|
output_type = TCC_OUTPUT_PREPROCESS;
|
||||||
break;
|
break;
|
||||||
|
case TCC_OPTION_x:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if (s->warn_unsupported) {
|
if (s->warn_unsupported) {
|
||||||
unsupported_option:
|
unsupported_option:
|
||||||
|
|
Loading…
Add table
Reference in a new issue