summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-14 20:55:49 +0000
committermidipix <writeonce@midipix.org>2024-02-14 20:55:49 +0000
commitfb5e7fb8cff2f935c814642502aba5b0d4e8c040 (patch)
treef6d5c2d79b0cc093c42c23755b6c62e55fafd841
parent36d22a5a10939bd29cb7dc3de8d0435a025b55e3 (diff)
downloadslibtool-fb5e7fb8cff2f935c814642502aba5b0d4e8c040.tar.bz2
slibtool-fb5e7fb8cff2f935c814642502aba5b0d4e8c040.tar.xz
driver: added --tag=ASM 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 e31e3c0..b081e57 100644
--- a/include/slibtool/slibtool.h
+++ b/include/slibtool/slibtool.h
@@ -150,6 +150,7 @@ enum slbt_tag {
SLBT_TAG_CXX,
SLBT_TAG_FC,
SLBT_TAG_F77,
+ SLBT_TAG_ASM,
SLBT_TAG_NASM,
SLBT_TAG_RC,
};
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 52aa0af..82514bc 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -482,6 +482,9 @@ int slbt_get_driver_ctx(
else if (!strcmp("F77",entry->arg))
cctx.tag = SLBT_TAG_F77;
+ else if (!strcmp("ASM",entry->arg))
+ cctx.tag = SLBT_TAG_ASM;
+
else if (!strcmp("NASM",entry->arg))
cctx.tag = SLBT_TAG_NASM;
diff --git a/src/skin/slbt_skin_default.c b/src/skin/slbt_skin_default.c
index 458611c..3cd62e5 100644
--- a/src/skin/slbt_skin_default.c
+++ b/src/skin/slbt_skin_default.c
@@ -35,7 +35,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|FC|F77|NASM|RC|disable-static|disable-shared",0,
+ "CC|CXX|FC|F77|ASM|NASM|RC|disable-static|disable-shared",0,
"a universal playground game; "
"currently accepted tags are {%s}"},