summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-07-11 08:49:55 -0400
committermidipix <writeonce@midipix.org>2018-07-11 09:35:43 -0400
commit4127b548161e64d97082a95c8b2571ed9686a646 (patch)
tree2552426975d79f7a0f5e889d9ec005421ddb8774
parent9a02e2b279c811545fbbaed99041b3171d64bb84 (diff)
downloadslibtool-4127b548161e64d97082a95c8b2571ed9686a646.tar.bz2
slibtool-4127b548161e64d97082a95c8b2571ed9686a646.tar.xz
driver: added --tag=RC support.
-rw-r--r--include/slibtool/slibtool.h1
-rw-r--r--src/driver/slbt_driver_ctx.c3
-rw-r--r--src/skin/slbt_skin_default.c2
3 files changed, 5 insertions, 1 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h
index 78bf62d..f2e6f0d 100644
--- a/include/slibtool/slibtool.h
+++ b/include/slibtool/slibtool.h
@@ -107,6 +107,7 @@ enum slbt_tag {
SLBT_TAG_CC,
SLBT_TAG_CXX,
SLBT_TAG_NASM,
+ SLBT_TAG_RC,
};
enum slbt_warning_level {
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 44cdd81..270f268 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -1058,6 +1058,9 @@ int slbt_get_driver_ctx(
else if (!strcmp("NASM",entry->arg))
cctx.tag = SLBT_TAG_NASM;
+ else if (!strcmp("RC",entry->arg))
+ cctx.tag = SLBT_TAG_RC;
+
else if (!strcmp("disable-static",entry->arg))
cctx.drvflags |= SLBT_DRIVER_DISABLE_STATIC;
diff --git a/src/skin/slbt_skin_default.c b/src/skin/slbt_skin_default.c
index d8ad0dd..ce8df6f 100644
--- a/src/skin/slbt_skin_default.c
+++ b/src/skin/slbt_skin_default.c
@@ -29,7 +29,7 @@ const struct argv_option slbt_default_options[] = {
"do not make any changes to the file system"},
{"tag", 0,TAG_TAG,ARGV_OPTARG_REQUIRED,0,
- "CC|CXX|NASM|disable-static|disable-shared",0,
+ "CC|CXX|NASM|RC|disable-static|disable-shared",0,
"a universal playground game; "
"currently accepted tags are {%s}"},