More tests need upstream behaviour of -custom
authorStephane Glondu <steph@glondu.net>
Mon, 21 Oct 2013 13:53:53 +0000 (15:53 +0200)
committerStephane Glondu <steph@glondu.net>
Mon, 21 Oct 2013 13:53:53 +0000 (15:53 +0200)
debian/patches/0008-Embed-bytecode-in-C-object-when-using-custom.patch

index d8366b623aaa53f1978af69f93ee66759d7dede6..ac8ce15c4cced08ada7f79808825e6da6444c3a1 100644 (file)
@@ -12,10 +12,14 @@ Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627761
 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678577
 Signed-off-by: Stephane Glondu <steph@glondu.net>
 ---
- bytecomp/bytelink.ml                 | 42 ++++++++++++++++++++++++++++++++----
- testsuite/tests/embedded/Makefile    |  4 ++++
- testsuite/tests/lib-marshal/Makefile |  3 +++
- 3 files changed, 45 insertions(+), 4 deletions(-)
+ bytecomp/bytelink.ml                          | 42 ++++++++++++++++++++++++---
+ testsuite/tests/basic-manyargs/Makefile       |  3 ++
+ testsuite/tests/callback/Makefile             |  3 ++
+ testsuite/tests/embedded/Makefile             |  4 +++
+ testsuite/tests/gc-roots/Makefile             |  3 ++
+ testsuite/tests/lib-dynlink-bytecode/Makefile |  3 ++
+ testsuite/tests/lib-marshal/Makefile          |  3 ++
+ 7 files changed, 57 insertions(+), 4 deletions(-)
 
 diff --git a/bytecomp/bytelink.ml b/bytecomp/bytelink.ml
 index 87a58ab..72678fa 100644
@@ -104,6 +108,33 @@ index 87a58ab..72678fa 100644
        if not (Filename.check_suffix output_name ".c") then begin
          temps := c_file :: !temps;
          if Ccomp.compile_file c_file <> 0 then raise(Error Custom_runtime);
+diff --git a/testsuite/tests/basic-manyargs/Makefile b/testsuite/tests/basic-manyargs/Makefile
+index 3cf4a15..d1ad48c 100644
+--- a/testsuite/tests/basic-manyargs/Makefile
++++ b/testsuite/tests/basic-manyargs/Makefile
+@@ -15,5 +15,8 @@ BASEDIR=../..
+ MAIN_MODULE=manyargs
+ C_FILES=manyargsprim
++# This test relies on the upstream behaviour of -custom
++export OCAML_CUSTOM_EMBED=n
++
+ include $(BASEDIR)/makefiles/Makefile.one
+ include $(BASEDIR)/makefiles/Makefile.common
+diff --git a/testsuite/tests/callback/Makefile b/testsuite/tests/callback/Makefile
+index 26d02ea..2069815 100644
+--- a/testsuite/tests/callback/Makefile
++++ b/testsuite/tests/callback/Makefile
+@@ -16,6 +16,9 @@ CC=$(NATIVECC) -I $(CTOPDIR)/byterun
+ COMPFLAGS=-I $(OTOPDIR)/otherlibs/unix
+ LD_PATH=$(TOPDIR)/otherlibs/unix
++# This test relies on the upstream behaviour of -custom
++export OCAML_CUSTOM_EMBED=n
++
+ .PHONY: default
+ default:
+       @case " $(OTHERLIBRARIES) " in \
 diff --git a/testsuite/tests/embedded/Makefile b/testsuite/tests/embedded/Makefile
 index 2a01c20..dfd999c 100644
 --- a/testsuite/tests/embedded/Makefile
@@ -119,6 +150,33 @@ index 2a01c20..dfd999c 100644
  default: compile run
  
  .PHONY: compile
+diff --git a/testsuite/tests/gc-roots/Makefile b/testsuite/tests/gc-roots/Makefile
+index a108953..9c1ff43 100644
+--- a/testsuite/tests/gc-roots/Makefile
++++ b/testsuite/tests/gc-roots/Makefile
+@@ -16,5 +16,8 @@ MAIN_MODULE=globroots
+ C_FILES=globrootsprim
+ ADD_COMPFLAGS=-w a
++# This test relies on the upstream behaviour of -custom
++export OCAML_CUSTOM_EMBED=n
++
+ include $(BASEDIR)/makefiles/Makefile.one
+ include $(BASEDIR)/makefiles/Makefile.common
+diff --git a/testsuite/tests/lib-dynlink-bytecode/Makefile b/testsuite/tests/lib-dynlink-bytecode/Makefile
+index 74f27b9..14cb816 100644
+--- a/testsuite/tests/lib-dynlink-bytecode/Makefile
++++ b/testsuite/tests/lib-dynlink-bytecode/Makefile
+@@ -15,6 +15,9 @@ BASEDIR=../..
+ COMPFLAGS=-I $(OTOPDIR)/otherlibs/dynlink
+ LD_PATH=.:$(TOPDIR)/otherlibs/dynlink
++# This test relies on the upstream behaviour of -custom
++export OCAML_CUSTOM_EMBED=n
++
+ .PHONY: default
+ default:
+       @$(SET_LD_PATH) $(MAKE) compile run
 diff --git a/testsuite/tests/lib-marshal/Makefile b/testsuite/tests/lib-marshal/Makefile
 index 34b67dc..e8928e6 100644
 --- a/testsuite/tests/lib-marshal/Makefile