diff options
| author | seyko <seyko2@gmail.com> | 2015-03-03 16:25:02 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2015-03-03 16:25:02 +0300 |
| commit | e374a733d6bf38eeca7a30deb7e476e7f40895ae (patch) | |
| tree | 33df70137bac5aa9cb6de4ab532a6d1f1d94930c | |
| parent | 4c8ffb353d89df3e9601c2a211092590ef5884be (diff) | |
| download | tinycc-e374a733d6bf38eeca7a30deb7e476e7f40895ae.tar.gz tinycc-e374a733d6bf38eeca7a30deb7e476e7f40895ae.tar.bz2 | |
-std=c99 option for the tcc: allow to use a tcc as a reference compiler for "make test"
tcc will igmore this option.
| -rw-r--r-- | libtcc.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1662,6 +1662,7 @@ enum { TCC_OPTION_d, TCC_OPTION_float_abi, TCC_OPTION_static, + TCC_OPTION_std, TCC_OPTION_shared, TCC_OPTION_soname, TCC_OPTION_o, @@ -1718,6 +1719,7 @@ static const TCCOption tcc_options[] = { { "mfloat-abi", TCC_OPTION_float_abi, TCC_OPTION_HAS_ARG }, #endif { "static", TCC_OPTION_static, 0 }, + { "std", TCC_OPTION_std, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP }, { "shared", TCC_OPTION_shared, 0 }, { "soname", TCC_OPTION_soname, TCC_OPTION_HAS_ARG }, { "o", TCC_OPTION_o, TCC_OPTION_HAS_ARG }, @@ -1876,6 +1878,10 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) case TCC_OPTION_static: s->static_link = 1; break; + case TCC_OPTION_std: + /* silently ignore, a current purpose: + allow to use a tcc as a reference compiler for "make test" */ + break; case TCC_OPTION_shared: if (s->output_type) tcc_warning("-shared: some compiler action already specified (%d)", s->output_type); |
