mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-17 05:20:08 +08:00
tcc: add option -s for gcc compatibility (ignored)
This commit is contained in:
parent
69fe7585a2
commit
eb550ed23b
6
tcc.c
6
tcc.c
@ -105,6 +105,7 @@ enum {
|
|||||||
TCC_OPTION_soname,
|
TCC_OPTION_soname,
|
||||||
TCC_OPTION_o,
|
TCC_OPTION_o,
|
||||||
TCC_OPTION_r,
|
TCC_OPTION_r,
|
||||||
|
TCC_OPTION_s,
|
||||||
TCC_OPTION_Wl,
|
TCC_OPTION_Wl,
|
||||||
TCC_OPTION_W,
|
TCC_OPTION_W,
|
||||||
TCC_OPTION_O,
|
TCC_OPTION_O,
|
||||||
@ -152,6 +153,7 @@ static const TCCOption tcc_options[] = {
|
|||||||
{ "run", TCC_OPTION_run, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
|
{ "run", TCC_OPTION_run, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
|
||||||
{ "rdynamic", TCC_OPTION_rdynamic, 0 },
|
{ "rdynamic", TCC_OPTION_rdynamic, 0 },
|
||||||
{ "r", TCC_OPTION_r, 0 },
|
{ "r", TCC_OPTION_r, 0 },
|
||||||
|
{ "s", TCC_OPTION_s, 0 },
|
||||||
{ "Wl,", TCC_OPTION_Wl, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
|
{ "Wl,", TCC_OPTION_Wl, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
|
||||||
{ "W", TCC_OPTION_W, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
|
{ "W", TCC_OPTION_W, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
|
||||||
{ "O", TCC_OPTION_O, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
|
{ "O", TCC_OPTION_O, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
|
||||||
@ -297,7 +299,7 @@ static int parse_args(TCCState *s, int argc, char **argv)
|
|||||||
nb_libraries++;
|
nb_libraries++;
|
||||||
break;
|
break;
|
||||||
case TCC_OPTION_pthread:
|
case TCC_OPTION_pthread:
|
||||||
/* fixme: these options could be different on your platform */
|
/* fixme: these options could be different on your platform */
|
||||||
if(output_type != TCC_OUTPUT_OBJ){
|
if(output_type != TCC_OUTPUT_OBJ){
|
||||||
dynarray_add((void ***)&files, &nb_files, "-lpthread");
|
dynarray_add((void ***)&files, &nb_files, "-lpthread");
|
||||||
nb_libraries++;
|
nb_libraries++;
|
||||||
@ -346,6 +348,8 @@ static int parse_args(TCCState *s, int argc, char **argv)
|
|||||||
case TCC_OPTION_nostdinc:
|
case TCC_OPTION_nostdinc:
|
||||||
s->nostdinc = 1;
|
s->nostdinc = 1;
|
||||||
break;
|
break;
|
||||||
|
case TCC_OPTION_s:
|
||||||
|
break;
|
||||||
case TCC_OPTION_nostdlib:
|
case TCC_OPTION_nostdlib:
|
||||||
s->nostdlib = 1;
|
s->nostdlib = 1;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user