summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-20 20:28:28 -0400
committermidipix <writeonce@midipix.org>2016-04-20 20:28:28 -0400
commit62b4bbde0e3311bbd5d06e0c9dcecd7834f14443 (patch)
tree95d037dff0c64e0a4d1ed6a1cdca40c196789f00
parent3d89b847193591672edc2e1908770ea0c43a66de (diff)
downloadslibtool-62b4bbde0e3311bbd5d06e0c9dcecd7834f14443.tar.bz2
slibtool-62b4bbde0e3311bbd5d06e0c9dcecd7834f14443.tar.xz
driver: added --tag=NASM 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 7cc387d..1d78ab1 100644
--- a/include/slibtool/slibtool.h
+++ b/include/slibtool/slibtool.h
@@ -73,6 +73,7 @@ enum slbt_tag {
SLBT_TAG_UNKNOWN,
SLBT_TAG_CC,
SLBT_TAG_CXX,
+ SLBT_TAG_NASM,
};
enum slbt_warning_level {
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 3a3aaea..97248c8 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -699,6 +699,9 @@ int slbt_get_driver_ctx(
else if (!strcmp("CXX",entry->arg))
cctx.tag = SLBT_TAG_CXX;
+
+ else if (!strcmp("NASM",entry->arg))
+ cctx.tag = SLBT_TAG_NASM;
break;
case TAG_CONFIG:
diff --git a/src/skin/slbt_skin_default.c b/src/skin/slbt_skin_default.c
index a0bf918..3d2d78f 100644
--- a/src/skin/slbt_skin_default.c
+++ b/src/skin/slbt_skin_default.c
@@ -21,7 +21,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",0,
+ "CC|CXX|NASM",0,
"a universal playground game"},
{"config", 0,TAG_CONFIG,ARGV_OPTARG_NONE,0,0,0,