mirror of
https://github.com/frida/tinycc
synced 2024-12-25 22:46:49 +03:00
accept option -x <lang>
This commit is contained in:
parent
610fd47510
commit
c4b7e77bbe
4
tcc.c
4
tcc.c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user