aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2009-12-08 21:28:49 +0100
committerMike Pall <mike>2009-12-08 21:28:49 +0100
commit6163a90d6d09e53e8a22079e95af5ecc8b97e9cc (patch)
tree573a9ff73ea8222ff33171e73a1207a5f1f6a082
parent699232f6678c7dfaefad68ac80ff31bbc9661854 (diff)
downloadluajit-6163a90d6d09e53e8a22079e95af5ecc8b97e9cc.tar.gz
luajit-6163a90d6d09e53e8a22079e95af5ecc8b97e9cc.tar.bz2
luajit-6163a90d6d09e53e8a22079e95af5ecc8b97e9cc.zip
Remove asm auto-detection due to cross-compilation issues.
-rw-r--r--src/Makefile5
-rw-r--r--src/buildvm.c10
-rw-r--r--src/buildvm.h2
3 files changed, 5 insertions, 12 deletions
diff --git a/src/Makefile b/src/Makefile
index c0deb774..a4a8152b 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -231,7 +231,7 @@ HOST_T= $(BUILDVM_T)
231LJVM_S= lj_vm.s 231LJVM_S= lj_vm.s
232LJVM_O= lj_vm.o 232LJVM_O= lj_vm.o
233LJVM_BOUT= $(LJVM_S) 233LJVM_BOUT= $(LJVM_S)
234LJVM_MODE= asm 234LJVM_MODE= elfasm
235 235
236LJLIB_O= lib_base.o lib_math.o lib_bit.o lib_string.o lib_table.o \ 236LJLIB_O= lib_base.o lib_math.o lib_bit.o lib_string.o lib_table.o \
237 lib_io.o lib_os.o lib_package.o lib_debug.o lib_jit.o 237 lib_io.o lib_os.o lib_package.o lib_debug.o lib_jit.o
@@ -293,6 +293,9 @@ ifeq (Windows,$(TARGET_SYS))
293 TARGET_XCFLAGS+= -DLUA_BUILD_AS_DLL 293 TARGET_XCFLAGS+= -DLUA_BUILD_AS_DLL
294 endif 294 endif
295endif 295endif
296ifeq (Darwin,$(TARGET_SYS))
297 LJVM_MODE= machasm
298endif
296 299
297ifeq (static,$(BUILDMODE)) 300ifeq (static,$(BUILDMODE))
298 TARGET_DYNCC= @: 301 TARGET_DYNCC= @:
diff --git a/src/buildvm.c b/src/buildvm.c
index 4aba39d4..94e2d9a2 100644
--- a/src/buildvm.c
+++ b/src/buildvm.c
@@ -398,16 +398,6 @@ int main(int argc, char **argv)
398 } 398 }
399 399
400 switch (ctx->mode) { 400 switch (ctx->mode) {
401 case BUILD_asm:
402#if defined(__ELF__)
403 ctx->mode = BUILD_elfasm;
404#elif defined(__MACH__)
405 ctx->mode = BUILD_machasm;
406#else
407 fprintf(stderr,"Error: auto-guessing the system assembler failed\n");
408 return 1;
409#endif
410 /* fallthrough */
411 case BUILD_elfasm: 401 case BUILD_elfasm:
412 case BUILD_coffasm: 402 case BUILD_coffasm:
413 case BUILD_machasm: 403 case BUILD_machasm:
diff --git a/src/buildvm.h b/src/buildvm.h
index 53c820ad..4bf4e56d 100644
--- a/src/buildvm.h
+++ b/src/buildvm.h
@@ -49,7 +49,7 @@ struct dasm_State;
49#endif 49#endif
50 50
51#define BUILDDEF(_) \ 51#define BUILDDEF(_) \
52 _(asm) _(elfasm) _(coffasm) _(machasm) BUILDDEFX(_) _(raw) \ 52 _(elfasm) _(coffasm) _(machasm) BUILDDEFX(_) _(raw) \
53 _(ffdef) _(libdef) _(recdef) _(vmdef) \ 53 _(ffdef) _(libdef) _(recdef) _(vmdef) \
54 _(folddef) 54 _(folddef)
55 55