From c4a3890f7c384e13df8442aa3986be944165e5e0 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 1 May 2016 14:18:40 -0400 Subject: dry run: initial quick implementation. With the current patch, slibtool respects --dry-run by turning the various modes (compile, link, install, execute) into no-ops. For at least the compile and install mode, it should be possible to output complete information about the steps that would be performed under default operation conditions, however that is not yet implemented. --- src/logic/slbt_exec_compile.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/logic/slbt_exec_compile.c') diff --git a/src/logic/slbt_exec_compile.c b/src/logic/slbt_exec_compile.c index dcfdf29..ec19c22 100644 --- a/src/logic/slbt_exec_compile.c +++ b/src/logic/slbt_exec_compile.c @@ -38,6 +38,10 @@ int slbt_exec_compile( struct slbt_exec_ctx * actx = 0; const struct slbt_source_version * verinfo; + /* dry run */ + if (dctx->cctx->drvflags & SLBT_DRIVER_DRY_RUN) + return 0; + /* context */ if (ectx) slbt_reset_placeholders(ectx); -- cgit v1.2.3