From 1c93c26f73c2e8746defed21d22d83d08ac16eaf Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 3 Aug 2018 22:27:33 +0000 Subject: mdso_create_asmsrc(): when also creating objects, always create fs asm files. --- src/helper/mdso_create_output.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/helper') diff --git a/src/helper/mdso_create_output.c b/src/helper/mdso_create_output.c index 39dd4d7..3b9fe5d 100644 --- a/src/helper/mdso_create_output.c +++ b/src/helper/mdso_create_output.c @@ -105,9 +105,14 @@ int mdso_create_asmsrc( const struct mdso_driver_ctx * dctx, const char * asmname) { - return dctx->cctx->dstdir - ? mdso_create_output(dctx,asmname) - : mdso_driver_fdout(dctx); + if (dctx->cctx->dstdir) + return mdso_create_output(dctx,asmname); + + else if (dctx->cctx->drvflags & MDSO_DRIVER_GENERATE_OBJECTS) + return mdso_create_output(dctx,asmname); + + else + return mdso_driver_fdout(dctx); } int mdso_create_object( -- cgit v1.2.3