summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-08-03 22:27:33 +0000
committermidipix <writeonce@midipix.org>2018-08-03 21:13:31 -0400
commit1c93c26f73c2e8746defed21d22d83d08ac16eaf (patch)
tree56d5ec448448f875eb4bd65b2bb4851bbe69d209 /src
parentec6c65d45c38a8927efb4e36af0dfff879f46b32 (diff)
downloadmdso-1c93c26f73c2e8746defed21d22d83d08ac16eaf.tar.bz2
mdso-1c93c26f73c2e8746defed21d22d83d08ac16eaf.tar.xz
mdso_create_asmsrc(): when also creating objects, always create fs asm files.
Diffstat (limited to 'src')
-rw-r--r--src/helper/mdso_create_output.c11
1 files changed, 8 insertions, 3 deletions
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(