diff options
author | midipix <writeonce@midipix.org> | 2016-04-20 20:36:55 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-20 20:36:55 -0400 |
commit | 8b1ca1a880b528bd473535aac6bb0135cdcd5324 (patch) | |
tree | 22aeb3e5267361871dd952defb35c04988e7a87b /src | |
parent | 62b4bbde0e3311bbd5d06e0c9dcecd7834f14443 (diff) | |
download | slibtool-8b1ca1a880b528bd473535aac6bb0135cdcd5324.tar.bz2 slibtool-8b1ca1a880b528bd473535aac6bb0135cdcd5324.tar.xz |
compile mode: added nasm support.
Diffstat (limited to 'src')
-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; |