History

Add -C gcc compatible option which does currently nothing. This allows, among others, to compile gnumake from git ROOTB.

Christian Jullien committed 6 years ago

Commit b5af2d31 parent 28e9fc12 files · +5 −1Browse files

Unified · Split

2 files
  1. libtcc.c +4 −1
  2. tcc.c +1 −0
libtcc.c+4−1
@@ -1622,7 +1622,8 @@ enum { · 1621 unmodified lines
1622 TCC_OPTION_MF,1622 TCC_OPTION_MF,
1623 TCC_OPTION_x,1623 TCC_OPTION_x,
1624 TCC_OPTION_ar,1624 TCC_OPTION_ar,
1625 TCC_OPTION_impdef1625 TCC_OPTION_impdef,
1626 TCC_OPTION_C
1626};1627};
1627 1628
1628#define TCC_OPTION_HAS_ARG 0x00011629#define TCC_OPTION_HAS_ARG 0x0001
@@ -1690,6 +1691,7 @@ static const TCCOption tcc_options[] = { · 61 unmodified lines
1690#ifdef TCC_TARGET_PE1691#ifdef TCC_TARGET_PE
1691 { "impdef", TCC_OPTION_impdef, 0},1692 { "impdef", TCC_OPTION_impdef, 0},
1692#endif1693#endif
1694 { "C", TCC_OPTION_C, 0},
1693 { NULL, 0, 0 },1695 { NULL, 0, 0 },
1694};1696};
1695 1697
@@ -2065,6 +2067,7 @@ reparse: · 369 unmodified lines
2065 case TCC_OPTION_pedantic:2067 case TCC_OPTION_pedantic:
2066 case TCC_OPTION_pipe:2068 case TCC_OPTION_pipe:
2067 case TCC_OPTION_s:2069 case TCC_OPTION_s:
2070 case TCC_OPTION_C:
2068 /* ignored */2071 /* ignored */
2069 break;2072 break;
2070 default:2073 default:
tcc.c+1−0
@@ -48,6 +48,7 @@ static const char help[] = · 47 unmodified lines
48 " -Dsym[=val] define 'sym' with value 'val'\n"48 " -Dsym[=val] define 'sym' with value 'val'\n"
49 " -Usym undefine 'sym'\n"49 " -Usym undefine 'sym'\n"
50 " -E preprocess only\n"50 " -E preprocess only\n"
51 " -C keep comments (not yet implemented)\n"
51 "Linker options:\n"52 "Linker options:\n"
52 " -Ldir add library path 'dir'\n"53 " -Ldir add library path 'dir'\n"
53 " -llib link with dynamic or static library 'lib'\n"54 " -llib link with dynamic or static library 'lib'\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