diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h index 7403234..4ac8c44 100644 --- a/include/slibtool/slibtool.h +++ b/include/slibtool/slibtool.h @@ -81,6 +81,7 @@ struct slbt_common_ctx { enum slbt_mode mode; enum slbt_tag tag; enum slbt_warning_level warnings; + const char * output; }; struct slbt_driver_ctx { diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index f3e0f68..d7e8c14 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -197,6 +197,10 @@ int slbt_get_driver_ctx( case TAG_VERBOSE: cctx.drvflags |= SLBT_DRIVER_VERBOSE; break; + + case TAG_OUTPUT: + cctx.output = entry->arg; + break; } } else nunits++;