diff --git a/libtcc.c b/libtcc.c index 949a7ced..0130b505 100644 --- a/libtcc.c +++ b/libtcc.c @@ -1486,7 +1486,8 @@ enum { TCC_OPTION_x, TCC_OPTION_ar, TCC_OPTION_impdef, - TCC_OPTION_C + TCC_OPTION_C, + TCC_OPTION_arch }; #define TCC_OPTION_HAS_ARG 0x0001 @@ -1557,6 +1558,9 @@ static const TCCOption tcc_options[] = { #ifdef TCC_TARGET_PE { "impdef", TCC_OPTION_impdef, 0}, #endif +//#ifdef TCC_TARGET_MACHO + { "arch", TCC_OPTION_arch, TCC_OPTION_HAS_ARG }, +//#endif { "C", TCC_OPTION_C, 0}, { NULL, 0, 0 }, }; @@ -1992,6 +1996,7 @@ reparse: case TCC_OPTION_pipe: case TCC_OPTION_s: case TCC_OPTION_C: + case TCC_OPTION_arch: /* ignored */ break; default: diff --git a/tcc.c b/tcc.c index 481eb27c..e16cde59 100644 --- a/tcc.c +++ b/tcc.c @@ -77,6 +77,9 @@ static const char help[] = " -MF file specify dependency file name\n" #if defined(TCC_TARGET_I386) || defined(TCC_TARGET_X86_64) " -m32/64 defer to i386/x86_64 cross compiler\n" +#endif +#if defined(TCC_TARGET_MACHO) || defined(TCC_TARGET_X86_64) + " -arch set macos target achitecture (ignored, always x86_64)\n" #endif "Tools:\n" " create library : tcc -ar [rcsv] lib.a files\n"