diff options
Diffstat (limited to 'src/logic')
-rw-r--r-- | src/logic/slbt_exec_compile.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/logic/slbt_exec_compile.c b/src/logic/slbt_exec_compile.c index 7f6b9b8..53de294 100644 --- a/src/logic/slbt_exec_compile.c +++ b/src/logic/slbt_exec_compile.c @@ -51,7 +51,15 @@ int slbt_exec_compile( *ectx->fpic = "-fPIC"; } - *ectx->cass = "-c"; + switch (dctx->cctx->tag) { + case SLBT_TAG_NASM: + break; + + default: + *ectx->cass = "-c"; + break; + } + *ectx->lout[0] = "-o"; *ectx->lout[1] = ectx->lobjname; @@ -77,7 +85,15 @@ int slbt_exec_compile( *ectx->fpic = "-fPIC"; } - *ectx->cass = "-c"; + switch (dctx->cctx->tag) { + case SLBT_TAG_NASM: + break; + + default: + *ectx->cass = "-c"; + break; + } + *ectx->lout[0] = "-o"; *ectx->lout[1] = ectx->aobjname; |