From 40fabb60a29153aeb9aba307f0266bd7539f9878 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 6 Mar 2016 14:39:53 -0500 Subject: driver: added context initialization for --preserve-dup-deps. --- include/slibtool/slibtool.h | 1 + src/driver/slbt_driver_ctx.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h index edc24e5..0b62be5 100644 --- a/include/slibtool/slibtool.h +++ b/include/slibtool/slibtool.h @@ -38,6 +38,7 @@ extern "C" { #define SLBT_DRIVER_CONFIG 0x0040 #define SLBT_DRIVER_DEBUG 0x0080 #define SLBT_DRIVER_FEATURES 0x0100 +#define SLBT_DRIVER_DEPS 0x0200 /* execution modes */ enum slbt_mode { diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 319678b..0e07c12 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -185,6 +185,11 @@ int slbt_get_driver_ctx( else if (!strcmp("none",entry->arg)) cctx.tag = SLBT_WARNING_LEVEL_NONE; break; + + case TAG_DEPS: + cctx.drvflags |= SLBT_DRIVER_DEPS; + break; + } } else nunits++; -- cgit v1.2.3