summaryrefslogtreecommitdiff
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-18 20:22:16 -0400
committermidipix <writeonce@midipix.org>2016-03-18 20:22:16 -0400
commitdb30c2bebc9fa1437777a72c7e6d2fe62fa496d1 (patch)
treef24887340b51267a72a636a6ab1a43584fc49b14 /src/logic
parent6f991bf7dbfc282e42e16cfd2abfd6093cbc90ad (diff)
downloadslibtool-db30c2bebc9fa1437777a72c7e6d2fe62fa496d1.tar.bz2
slibtool-db30c2bebc9fa1437777a72c7e6d2fe62fa496d1.tar.xz
slbt_exec_compile(): output compilation steps when not in silent mode.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/slbt_exec_compile.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_compile.c b/src/logic/slbt_exec_compile.c
index 34fc10d..58bec79 100644
--- a/src/logic/slbt_exec_compile.c
+++ b/src/logic/slbt_exec_compile.c
@@ -51,6 +51,13 @@ int slbt_exec_compile(
*ectx->lout[0] = "-o";
*ectx->lout[1] = ectx->lobjname;
+ if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT)) {
+ if (slbt_output_compile(dctx,ectx)) {
+ slbt_free_exec_ctx(actx);
+ return -1;
+ }
+ }
+
if (((ret = slbt_spawn(ectx,true)) < 0) || ectx->exitcode) {
slbt_free_exec_ctx(actx);
return -1;
@@ -70,6 +77,13 @@ int slbt_exec_compile(
*ectx->lout[0] = "-o";
*ectx->lout[1] = ectx->aobjname;;
+ if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT)) {
+ if (slbt_output_compile(dctx,ectx)) {
+ slbt_free_exec_ctx(actx);
+ return -1;
+ }
+ }
+
if (((ret = slbt_spawn(ectx,true)) < 0) || ectx->exitcode) {
slbt_free_exec_ctx(actx);
return -1;