summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-20 20:36:55 -0400
committermidipix <writeonce@midipix.org>2016-04-20 20:36:55 -0400
commit8b1ca1a880b528bd473535aac6bb0135cdcd5324 (patch)
tree22aeb3e5267361871dd952defb35c04988e7a87b
parent62b4bbde0e3311bbd5d06e0c9dcecd7834f14443 (diff)
downloadslibtool-8b1ca1a880b528bd473535aac6bb0135cdcd5324.tar.bz2
slibtool-8b1ca1a880b528bd473535aac6bb0135cdcd5324.tar.xz
compile mode: added nasm support.
-rw-r--r--src/logic/slbt_exec_compile.c20
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;