From c4b7e77bbe1de67350489d205d5962edf1a98d7f Mon Sep 17 00:00:00 2001 From: grischka Date: Wed, 17 Jun 2009 02:11:27 +0200 Subject: [PATCH] accept option -x --- tcc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tcc.c b/tcc.c index 3fce6080..9746f9f7 100644 --- a/tcc.c +++ b/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: