summaryrefslogtreecommitdiff
path: root/src/logic/slbt_exec_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-20 12:24:55 -0400
committermidipix <writeonce@midipix.org>2016-03-20 13:01:48 -0400
commit27a8e18211ae952857b5749fd21587b5a5ca3eaa (patch)
treef375ece18382fdd1deb3186ba2c39ce4f46808de /src/logic/slbt_exec_ctx.c
parent6d0e8adf800c3f3bd5767ebb0cd6d2842d56a337 (diff)
downloadslibtool-27a8e18211ae952857b5749fd21587b5a5ca3eaa.tar.bz2
slibtool-27a8e18211ae952857b5749fd21587b5a5ca3eaa.tar.xz
struct slbt_exec_ctx: distinguish between the compiler and the invoked program.
Diffstat (limited to 'src/logic/slbt_exec_ctx.c')
-rw-r--r--src/logic/slbt_exec_ctx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c
index 0af29ca..b59ac88 100644
--- a/src/logic/slbt_exec_ctx.c
+++ b/src/logic/slbt_exec_ctx.c
@@ -139,7 +139,8 @@ int slbt_get_exec_ctx(
ictx->ctx.altv = &ictx->buffer[ictx->argc + 1];
/* <compiler> */
- ictx->ctx.program = dctx->cctx->cargv[0];
+ ictx->ctx.compiler = dctx->cctx->cargv[0];
+ ictx->ctx.cargv = ictx->ctx.argv;
/* ldirname, lbasename */
ref = (dctx->cctx->output)