Skip to content

Commit 57e9d72

Browse files
committed
Set OCAMLPARAM="_,O2=1" in the flambda2 packages
1 parent b6cc76e commit 57e9d72

File tree

2 files changed

+8
-2
lines changed
  • packages/ocaml-variants
    • ocaml-variants.4.14.1+flambda2
    • ocaml-variants.4.14.1+pr968+flambda2

2 files changed

+8
-2
lines changed

packages/ocaml-variants/ocaml-variants.4.14.1+flambda2/opam

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ depends: [
1515
]
1616
conflict-class: "ocaml-core-compiler"
1717
flags: [ compiler avoid-version ]
18-
setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
18+
setenv: [
19+
[CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"]
20+
[OCAMLPARAM = "_,O2=1"]
21+
]
1922
install: [
2023
["sh" "-c" "cd \"${TMPDIR:-/tmp}\" && mv \"%{build}%\"/*.tar.gz . && tar xvf special_dune.tar.gz && tar xvf ocaml-4.14.0.tar.gz && cd ocaml-4.14.0 && ./configure \"--prefix=${TMPDIR:-/tmp}/ocaml\" && make -j%{jobs}% && make install && PATH=\"${TMPDIR:-/tmp}/ocaml/bin:$PATH\" %{make}% -C \"${TMPDIR:-/tmp}/dune-special_dune\" release && cp \"${TMPDIR:-/tmp}/dune-special_dune/dune.exe\" \"%{build}%/\" && cd \"%{build}%\" && autoconf && PATH=\"${TMPDIR:-/tmp}/ocaml/bin:$PATH\" ./configure \"--prefix=%{prefix}%\" --enable-middle-end=flambda2 \"--with-dune=%{build}%/dune.exe\" && PATH=\"${TMPDIR:-/tmp}/ocaml/bin:$PATH\" \"%{make}%\" -j%{jobs}% && PATH=\"${TMPDIR:-/tmp}/ocaml/bin:$PATH\" \"%{make}%\" install"]
2124
]

packages/ocaml-variants/ocaml-variants.4.14.1+pr968+flambda2/opam

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ depends: [
1515
]
1616
conflict-class: "ocaml-core-compiler"
1717
flags: [ compiler avoid-version ]
18-
setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
18+
setenv: [
19+
[CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"]
20+
[OCAMLPARAM = "_,O2=1"]
21+
]
1922
install: [
2023
["sh" "-c" "cd \"${TMPDIR:-/tmp}\" && mv \"%{build}%\"/*.tar.gz . && tar xvf special_dune.tar.gz && tar xvf ocaml-4.14.0.tar.gz && cd ocaml-4.14.0 && ./configure \"--prefix=${TMPDIR:-/tmp}/ocaml\" && make -j%{jobs}% && make install && PATH=\"${TMPDIR:-/tmp}/ocaml/bin:$PATH\" %{make}% -C \"${TMPDIR:-/tmp}/dune-special_dune\" release && cp \"${TMPDIR:-/tmp}/dune-special_dune/dune.exe\" \"%{build}%/\" && cd \"%{build}%\" && autoconf && PATH=\"${TMPDIR:-/tmp}/ocaml/bin:$PATH\" ./configure \"--prefix=%{prefix}%\" --enable-middle-end=flambda2 \"--with-dune=%{build}%/dune.exe\" && PATH=\"${TMPDIR:-/tmp}/ocaml/bin:$PATH\" \"%{make}%\" -j%{jobs}% && PATH=\"${TMPDIR:-/tmp}/ocaml/bin:$PATH\" \"%{make}%\" install"]
2124
]

0 commit comments

Comments
 (0)