History

macOS: add -arch option to allow to bootstrap tcc with tcc on macOS.

Christian Jullien committed 5 years ago

Commit a951dc01 parent dda95e92 files · +9 −1Browse files

Unified · Split

2 files
  1. libtcc.c +6 −1
  2. tcc.c +3 −0
libtcc.c+6−1
@@ -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_C1489 TCC_OPTION_C,
1490 TCC_OPTION_arch
1490};1491};
1491 1492
1492#define TCC_OPTION_HAS_ARG 0x00011493#define TCC_OPTION_HAS_ARG 0x0001
@@ -1557,6 +1558,9 @@ static const TCCOption tcc_options[] = { · 64 unmodified lines
1557#ifdef TCC_TARGET_PE1558#ifdef TCC_TARGET_PE
1558 { "impdef", TCC_OPTION_impdef, 0},1559 { "impdef", TCC_OPTION_impdef, 0},
1559#endif1560#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:
tcc.c+3−0
@@ -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#endif83#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"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t