dev-lang/ocaml: add flambda useflag
authorAlexis Ballier <aballier@gentoo.org>
Sat, 2 Apr 2016 09:05:30 +0000 (11:05 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Sat, 2 Apr 2016 09:05:59 +0000 (11:05 +0200)
Package-Manager: portage-2.2.28
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
dev-lang/ocaml/metadata.xml
dev-lang/ocaml/ocaml-4.03.0_beta2.ebuild

index ffac4d7ebc0169266bc4466a92a17000a4b69db8..aabb331fc97731fb79963510fbcc2729dcd7f04a 100644 (file)
@@ -5,4 +5,7 @@
        <email>ml@gentoo.org</email>
        <name>Gentoo ML Project</name>
 </maintainer>
+  <use>
+       <flag name="flambda">Enables the Flambda optimizer: A new intermediate representation (introduced in ocaml 4.03) in the depths of the compiler designed to allow for better inlining.</flag>
+  </use>
 </pkgmetadata>
index 0aea93c39f97b7d0d806b1a3fa62c4d895bae177..f795daef39628efad5bcddd5dbb8dd0f8096c98f 100644 (file)
@@ -18,7 +18,7 @@ LICENSE="QPL-1.0 LGPL-2"
 # so here we go with the subslot.
 SLOT="0/${PV}"
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
-IUSE="emacs latex ncurses +ocamlopt X xemacs"
+IUSE="emacs flambda latex ncurses +ocamlopt X xemacs"
 
 RDEPEND="
        ncurses? ( sys-libs/ncurses:0= )
@@ -60,6 +60,7 @@ src_configure() {
 
        use ncurses || myconf="${myconf} -no-curses"
        use X || myconf="${myconf} -no-graph"
+       use flambda && myconf="${myconf} -flambda"
 
        # ocaml uses a home-brewn configure script, preventing it to use econf.
        RAW_LDFLAGS="$(raw-ldflags)" ./configure \