summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-06 13:55:30 -0500
committermidipix <writeonce@midipix.org>2016-03-08 14:21:07 -0500
commit173b545076f33b04bdac929c9579fc49b58e1cb2 (patch)
treeada72a6d405e78495f6a3396ad9a8f4ab43a3ee7
parent53f4ecfce0579e4e7893dc4ef94f5e50f5db2f4f (diff)
downloadslibtool-173b545076f33b04bdac929c9579fc49b58e1cb2.tar.bz2
slibtool-173b545076f33b04bdac929c9579fc49b58e1cb2.tar.xz
driver: added context initialization for --config.
-rw-r--r--include/slibtool/slibtool.h1
-rw-r--r--src/driver/slbt_driver_ctx.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h
index 5cb60c6..a1fd6b2 100644
--- a/include/slibtool/slibtool.h
+++ b/include/slibtool/slibtool.h
@@ -35,6 +35,7 @@ extern "C" {
#define SLBT_DRIVER_VERSION 0x0010
#define SLBT_DRIVER_DRY_RUN 0x0020
+#define SLBT_DRIVER_CONFIG 0x0040
/* execution modes */
enum slbt_mode {
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 8d586cd..f75e2b4 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -162,6 +162,11 @@ int slbt_get_driver_ctx(
else if (!strcmp("CXX",entry->arg))
cctx.tag = SLBT_TAG_CXX;
break;
+
+ case TAG_CONFIG:
+ cctx.drvflags |= SLBT_DRIVER_CONFIG;
+ break;
+
}
} else
nunits++;