From 4127b548161e64d97082a95c8b2571ed9686a646 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 11 Jul 2018 08:49:55 -0400 Subject: driver: added --tag=RC support. --- include/slibtool/slibtool.h | 1 + src/driver/slbt_driver_ctx.c | 3 +++ src/skin/slbt_skin_default.c | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) 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}"}, -- cgit v1.2.3