From 5cd4393a542ef4c64df7dcbb3fbe3a629666239d Mon Sep 17 00:00:00 2001 From: seyko Date: Fri, 10 Apr 2015 06:53:48 +0300 Subject: handle a -s option by executing sstrip/strip program --- libtcc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libtcc.c') diff --git a/libtcc.c b/libtcc.c index d33cdb0..d5bf555 100644 --- a/libtcc.c +++ b/libtcc.c @@ -1967,10 +1967,12 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) case TCC_OPTION_dumpversion: printf ("%s\n", TCC_VERSION); exit(0); + case TCC_OPTION_s: + s->do_strip = 1; + break; case TCC_OPTION_O: case TCC_OPTION_pedantic: case TCC_OPTION_pipe: - case TCC_OPTION_s: case TCC_OPTION_x: /* ignored */ break; -- cgit v1.3.1