diff options
-rw-r--r-- | testsuite/lib/Makefile | 4 | ||||
-rw-r--r-- | testsuite/makefiles/Makefile.common | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/testsuite/lib/Makefile b/testsuite/lib/Makefile index c73bea508..904025ffd 100644 --- a/testsuite/lib/Makefile +++ b/testsuite/lib/Makefile @@ -1,9 +1,11 @@ # $Id$ -compile: testing.cmi testing.cmo testing.cmx +compile: compile-targets promote: defaultpromote clean: defaultclean include ../makefiles/Makefile.common + +compile-targets: testing.cmi testing.cmo $(if $(BYTECODE_ONLY),,testing.cmx) diff --git a/testsuite/makefiles/Makefile.common b/testsuite/makefiles/Makefile.common index e1b15dbac..983f82c2f 100644 --- a/testsuite/makefiles/Makefile.common +++ b/testsuite/makefiles/Makefile.common @@ -16,7 +16,7 @@ OCAMLMKLIB=$(OCAMLRUN) $(TOPDIR)/tools/ocamlmklib$(EXE) OCAMLYACC=$(TOPDIR)/yacc/ocamlyacc$(EXE) OCAMLBUILD=$(TOPDIR)/_build/ocamlbuild/ocamlbuild.native DUMPOBJ=$(OCAMLRUN) $(TOPDIR)/tool/dumpobj$(EXE) -BYTECODE_ONLY=`if [ "$(ASM)" = "none" ]; then echo 'YES'; else echo ''; fi` +BYTECODE_ONLY=`if [ "$(ARCH)" = "none" -o "$(ASM)" = "none" ]; then echo 'YES'; else echo ''; fi` #COMPFLAGS= #FORTRAN_COMPILER= #FORTRAN_LIBRARY= |