Unified · Split
| @@ -1486,7 +1486,8 @@ enum { · 1485 unmodified lines | ||
| 1486 | 1486 | TCC_OPTION_x, |
| 1487 | 1487 | TCC_OPTION_ar, |
| 1488 | 1488 | TCC_OPTION_impdef, |
| 1489 | − TCC_OPTION_C | |
| 1489 | + TCC_OPTION_C, | |
| 1490 | + TCC_OPTION_arch | |
| 1490 | 1491 | }; |
| 1491 | 1492 | |
| 1492 | 1493 | #define TCC_OPTION_HAS_ARG 0x0001 |
| @@ -1557,6 +1558,9 @@ static const TCCOption tcc_options[] = { · 64 unmodified lines | ||
| 1557 | 1558 | #ifdef TCC_TARGET_PE |
| 1558 | 1559 | { "impdef", TCC_OPTION_impdef, 0}, |
| 1559 | 1560 | #endif |
| 1561 | +//#ifdef TCC_TARGET_MACHO | |
| 1562 | + { "arch", TCC_OPTION_arch, TCC_OPTION_HAS_ARG }, | |
| 1563 | +//#endif | |
| 1560 | 1564 | { "C", TCC_OPTION_C, 0}, |
| 1561 | 1565 | { NULL, 0, 0 }, |
| 1562 | 1566 | }; |
| @@ -1992,6 +1996,7 @@ reparse: · 429 unmodified lines | ||
| 1992 | 1996 | case TCC_OPTION_pipe: |
| 1993 | 1997 | case TCC_OPTION_s: |
| 1994 | 1998 | case TCC_OPTION_C: |
| 1999 | + case TCC_OPTION_arch: | |
| 1995 | 2000 | /* ignored */ |
| 1996 | 2001 | break; |
| 1997 | 2002 | default: |
| @@ -77,6 +77,9 @@ static const char help[] = · 76 unmodified lines | ||
| 77 | 77 | " -MF file specify dependency file name\n" |
| 78 | 78 | #if defined(TCC_TARGET_I386) || defined(TCC_TARGET_X86_64) |
| 79 | 79 | " -m32/64 defer to i386/x86_64 cross compiler\n" |
| 80 | +#endif | |
| 81 | +#if defined(TCC_TARGET_MACHO) || defined(TCC_TARGET_X86_64) | |
| 82 | + " -arch set macos target achitecture (ignored, always x86_64)\n" | |
| 80 | 83 | #endif |
| 81 | 84 | "Tools:\n" |
| 82 | 85 | " create library : tcc -ar [rcsv] lib.a files\n" |