From 4df79057b5f599ec5ee6cb16572f9649726301a3 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 16 Mar 2016 04:16:40 -0400 Subject: driver: added context initialization for --target. --- include/slibtool/slibtool.h | 1 + src/driver/slbt_driver_ctx.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h index c5e250a..61d8917 100644 --- a/include/slibtool/slibtool.h +++ b/include/slibtool/slibtool.h @@ -113,6 +113,7 @@ struct slbt_common_ctx { enum slbt_mode mode; enum slbt_tag tag; enum slbt_warning_level warnings; + const char * target; const char * output; char ** targv; char ** cargv; diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index bb9343a..a207c5b 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -332,6 +332,10 @@ int slbt_get_driver_ctx( cctx.output = entry->arg; break; + case TAG_TARGET: + cctx.target = entry->arg; + break; + case TAG_PREFER_PIC: cctx.drvflags |= SLBT_DRIVER_PRO_PIC; break; -- cgit v1.2.3