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
16221622 TCC_OPTION_MF,
16231623 TCC_OPTION_x,
16241624 TCC_OPTION_ar,
1625− TCC_OPTION_impdef
1625+ TCC_OPTION_impdef,
1626+ TCC_OPTION_C
16261627 };
16271628
16281629 #define TCC_OPTION_HAS_ARG 0x0001
@@ -1690,6 +1691,7 @@ static const TCCOption tcc_options[] = { · 61 unmodified lines
16901691 #ifdef TCC_TARGET_PE
16911692 { "impdef", TCC_OPTION_impdef, 0},
16921693 #endif
1694+ { "C", TCC_OPTION_C, 0},
16931695 { NULL, 0, 0 },
16941696 };
16951697
@@ -2065,6 +2067,7 @@ reparse: · 369 unmodified lines
20652067 case TCC_OPTION_pedantic:
20662068 case TCC_OPTION_pipe:
20672069 case TCC_OPTION_s:
2070+ case TCC_OPTION_C:
20682071 /* ignored */
20692072 break;
20702073 default:
tcc.c+1−0
@@ -48,6 +48,7 @@ static const char help[] = · 47 unmodified lines
4848 " -Dsym[=val] define 'sym' with value 'val'\n"
4949 " -Usym undefine 'sym'\n"
5050 " -E preprocess only\n"
51+ " -C keep comments (not yet implemented)\n"
5152 "Linker options:\n"
5253 " -Ldir add library path 'dir'\n"
5354 " -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