summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-06 13:41:47 -0500
committermidipix <writeonce@midipix.org>2016-03-08 14:21:07 -0500
commit53f4ecfce0579e4e7893dc4ef94f5e50f5db2f4f (patch)
tree974fe6479f97cced723bdbb4f9c8e85b41fdf341 /src/driver
parent071d14658f92af8e478e1941a9d82cb8ab3079d6 (diff)
downloadslibtool-53f4ecfce0579e4e7893dc4ef94f5e50f5db2f4f.tar.bz2
slibtool-53f4ecfce0579e4e7893dc4ef94f5e50f5db2f4f.tar.xz
driver: added context initialization for --tag.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/slbt_driver_ctx.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 3eb7231..8d586cd 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -154,6 +154,14 @@ int slbt_get_driver_ctx(
case TAG_DRY_RUN:
cctx.drvflags |= SLBT_DRIVER_DRY_RUN;
break;
+
+ case TAG_TAG:
+ if (!strcmp("CC",entry->arg))
+ cctx.tag = SLBT_TAG_CC;
+
+ else if (!strcmp("CXX",entry->arg))
+ cctx.tag = SLBT_TAG_CXX;
+ break;
}
} else
nunits++;