Skip to content

Commit

Permalink
Add -C gcc compatible option which does currently nothing. This allow…
Browse files Browse the repository at this point in the history
…s, among others, to compile gnumake from git ROOTB.
  • Loading branch information
c-jullien committed Jul 11, 2020
1 parent 28e9fc1 commit b5af2d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libtcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,8 @@ enum {
TCC_OPTION_MF,
TCC_OPTION_x,
TCC_OPTION_ar,
TCC_OPTION_impdef
TCC_OPTION_impdef,
TCC_OPTION_C
};

#define TCC_OPTION_HAS_ARG 0x0001
Expand Down Expand Up @@ -1690,6 +1691,7 @@ static const TCCOption tcc_options[] = {
#ifdef TCC_TARGET_PE
{ "impdef", TCC_OPTION_impdef, 0},
#endif
{ "C", TCC_OPTION_C, 0},
{ NULL, 0, 0 },
};

Expand Down Expand Up @@ -2065,6 +2067,7 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int *pargc, char ***pargv, int optind)
case TCC_OPTION_pedantic:
case TCC_OPTION_pipe:
case TCC_OPTION_s:
case TCC_OPTION_C:
/* ignored */
break;
default:
Expand Down
1 change: 1 addition & 0 deletions tcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ static const char help[] =
" -Dsym[=val] define 'sym' with value 'val'\n"
" -Usym undefine 'sym'\n"
" -E preprocess only\n"
" -C keep comments (not yet implemented)\n"
"Linker options:\n"
" -Ldir add library path 'dir'\n"
" -llib link with dynamic or static library 'lib'\n"
Expand Down

0 comments on commit b5af2d3

Please sign in to comment.