diff options
author | midipix <writeonce@midipix.org> | 2024-07-19 02:51:53 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-07-19 03:09:42 +0000 |
commit | 99eb57ae04ee435a5d498c01badff4e7a58e5bf1 (patch) | |
tree | da4dc03f41314518aa80132140d61e336cb7ce64 /src/driver | |
parent | 99a62b114b0f32b3c4a46f18dbfe22fe33405dab (diff) | |
download | slibtool-99eb57ae04ee435a5d498c01badff4e7a58e5bf1.tar.bz2 slibtool-99eb57ae04ee435a5d498c01badff4e7a58e5bf1.tar.xz |
driver: heuristics: ignore errors if invoked with any of the -print commands.
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/slbt_driver_ctx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index c4f50b5..09adb68 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -440,6 +440,7 @@ int slbt_lib_get_driver_ctx( sargv.cargv = 0; objlistv = 0; ndlopen = 0; + lflags = 0; switch (slbt_split_argv(argv,flags,&sargv,&objlistv,fdctx->fderr,fdctx->fdcwd)) { case SLBT_OK: @@ -1012,7 +1013,8 @@ int slbt_lib_get_driver_ctx( if (cctx.drvflags & SLBT_DRIVER_HEURISTICS) { if (slbt_get_lconf_flags(&ctx->ctx,lconf,&lflags,false) < 0) - return slbt_lib_get_driver_ctx_fail(&ctx->ctx,0); + if (!(cctx.drvflags & SLBT_DRIVER_OUTPUT_MASK)) + return slbt_lib_get_driver_ctx_fail(&ctx->ctx,0); } else { switch (cctx.mode) { case SLBT_MODE_UNKNOWN: |