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