ocaml (4.03.0-2) UNRELEASED; urgency=medium
* Add native compilers for ppc64, ppc64el, s390x.
+ * Skip native tests on bytecode-only systems.
-- Ximin Luo <infinity0@debian.org> Fri, 28 Oct 2016 00:08:02 +0200
--- /dev/null
+--- a/testsuite/tests/lib-dynlink-csharp/Makefile
++++ b/testsuite/tests/lib-dynlink-csharp/Makefile
+@@ -30,7 +30,9 @@
+ prepare:
+ @if $(SUPPORTS_SHARED_LIBRARIES); then \
+ $(OCAMLC) -c plugin.ml && \
+- $(OCAMLOPT) -o plugin.cmxs -shared plugin.ml; \
++ if $(BYTECODE_ONLY) ; then : ; else \
++ $(OCAMLOPT) -o plugin.cmxs -shared plugin.ml; \
++ fi; \
+ fi
+
+ .PHONY: bytecode
+--- a/testsuite/tests/link-test/Makefile
++++ b/testsuite/tests/link-test/Makefile
+@@ -15,6 +15,13 @@
+ #**************************************************************************
+
+ default:
++ @if $(BYTECODE_ONLY) ; then \
++ echo " ... testing 'test.reference': => skipped"; \
++ else \
++ $(MAKE) native; \
++ fi
++
++native:
+ printf " ... testing 'test.reference':"
+ @$(OCAMLOPT) -c submodule.ml
+ @$(OCAMLOPT) -c aliases.ml
0005-Avoid-multiple-declarations-in-generated-.c-files-in.patch
0006-Embed-bytecode-in-C-object-when-using-custom.patch
0008-Native-backtraces-don-t-work-on-powerpc-and-sparc.patch
+0009-Skip-native-tests.patch