From 40fabb60a29153aeb9aba307f0266bd7539f9878 Mon Sep 17 00:00:00 2001 From: midipix Date: Mar 08 2016 19:21:08 +0000 Subject: driver: added context initialization for --preserve-dup-deps. --- 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++;