From 116dbb9f65f5fe7d30801b00ef8b81710e2041a4 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 6 Mar 2016 22:21:51 -0500 Subject: driver: added option table records for --mode=compile. --- src/internal/slibtool_driver_impl.h | 8 ++++++++ src/skin/slbt_skin_default.c | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h index ff54526..7160c4c 100644 --- a/src/internal/slibtool_driver_impl.h +++ b/src/internal/slibtool_driver_impl.h @@ -25,6 +25,14 @@ enum app_tags { TAG_SILENT, TAG_TAG, TAG_VERBOSE, + TAG_OUTPUT, + TAG_NO_SUPPRESS, + TAG_PREFER_PIC, + TAG_PREFER_NON_PIC, + TAG_SHARED, + TAG_STATIC, + TAG_COMPILER_FLAG, + TAG_VERBATIM_FLAG, }; struct slbt_driver_ctx_impl { diff --git a/src/skin/slbt_skin_default.c b/src/skin/slbt_skin_default.c index 5e94612..cec03db 100644 --- a/src/skin/slbt_skin_default.c +++ b/src/skin/slbt_skin_default.c @@ -57,5 +57,39 @@ const struct argv_option slbt_default_options[] = { "all|none|error","", "convenient shorthands for the above"}, + {"output", 'o',TAG_OUTPUT,ARGV_OPTARG_REQUIRED,0,0,"", + "write output to %s"}, + + {"no-suppress", 0,TAG_NO_SUPPRESS,ARGV_OPTARG_NONE, + ARGV_OPTION_HYBRID_ONLY,0,0, + "transparently forward all " + "compiler-generated output"}, + + {"prefer-pic", 0,TAG_PREFER_PIC,ARGV_OPTARG_NONE, + ARGV_OPTION_HYBRID_ONLY,0,0, + "pick on non-PIC objects"}, + + {"prefer-non-pic", 0,TAG_PREFER_NON_PIC,ARGV_OPTARG_NONE, + ARGV_OPTION_HYBRID_ONLY,0,0, + "pick on PIC objects"}, + + {"shared", 0,TAG_SHARED,ARGV_OPTARG_NONE, + ARGV_OPTION_HYBRID_ONLY,0,0, + "only build .libs/srcfile.o"}, + + {"static", 0,TAG_STATIC,ARGV_OPTARG_NONE, + ARGV_OPTION_HYBRID_ONLY,0,0, + "only build ./srcfile.o"}, + + {"Wc", 0,TAG_COMPILER_FLAG,ARGV_OPTARG_REQUIRED, + ARGV_OPTION_HYBRID_ONLY|ARGV_OPTION_HYBRID_COMMA, + 0,"[,", + "pass a raw flag to the compiler"}, + {0,0,0,0,0,0,0,0} }; -- cgit v1.2.3