summaryrefslogtreecommitdiff
path: root/src/driver/slbt_driver_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-03 14:43:21 -0400
committermidipix <writeonce@midipix.org>2016-05-03 14:43:21 -0400
commit0a9bff7db844b4bf21bf548616647bddecb13ff2 (patch)
tree463c6f104a37aedd5abc697a3b98082bbdeb4f2b /src/driver/slbt_driver_ctx.c
parent51838dc8ff5f599a4616fc4588604e229e91c4c0 (diff)
downloadslibtool-0a9bff7db844b4bf21bf548616647bddecb13ff2.tar.bz2
slibtool-0a9bff7db844b4bf21bf548616647bddecb13ff2.tar.xz
driver: added --legabits support.
Diffstat (limited to 'src/driver/slbt_driver_ctx.c')
-rw-r--r--src/driver/slbt_driver_ctx.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 8d8faa9..44e92c8 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -874,6 +874,16 @@ int slbt_get_driver_ctx(
cctx.drvflags |= SLBT_DRIVER_FEATURES;
break;
+ case TAG_LEGABITS:
+ if (!entry->arg)
+ cctx.drvflags |= SLBT_DRIVER_LEGABITS;
+
+ else if (!strcmp("enabled",entry->arg))
+ cctx.drvflags |= SLBT_DRIVER_LEGABITS;
+
+ else
+ cctx.drvflags &= ~(uint64_t)SLBT_DRIVER_LEGABITS;
+
case TAG_WARNINGS:
if (!strcmp("all",entry->arg))
cctx.warnings = SLBT_WARNING_LEVEL_ALL;