ruby: add option to enable jemalloc
This commit is contained in:
parent
5852a21819
commit
1c33c0ad6b
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, buildPackages, lib
|
{ stdenv, buildPackages, lib
|
||||||
, fetchurl, fetchpatch, fetchFromSavannah, fetchFromGitHub
|
, fetchurl, fetchpatch, fetchFromSavannah, fetchFromGitHub
|
||||||
, zlib, openssl, gdbm, ncurses, readline, groff, libyaml, libffi, autoreconfHook, bison
|
, zlib, openssl, gdbm, ncurses, readline, groff, libyaml, libffi, jemalloc, autoreconfHook, bison
|
||||||
, autoconf, libiconv, libobjc, libunwind, Foundation
|
, autoconf, libiconv, libobjc, libunwind, Foundation
|
||||||
, buildEnv, bundler, bundix
|
, buildEnv, bundler, bundix
|
||||||
, makeWrapper, buildRubyGem, defaultGemConfig, removeReferencesTo
|
, makeWrapper, buildRubyGem, defaultGemConfig, removeReferencesTo
|
||||||
@ -44,6 +44,7 @@ let
|
|||||||
, groff, docSupport ? true
|
, groff, docSupport ? true
|
||||||
, libyaml, yamlSupport ? true
|
, libyaml, yamlSupport ? true
|
||||||
, libffi, fiddleSupport ? true
|
, libffi, fiddleSupport ? true
|
||||||
|
, jemalloc, jemallocSupport ? false
|
||||||
# By default, ruby has 3 observed references to stdenv.cc:
|
# By default, ruby has 3 observed references to stdenv.cc:
|
||||||
#
|
#
|
||||||
# - If you run:
|
# - If you run:
|
||||||
@ -94,6 +95,7 @@ let
|
|||||||
++ (op opensslSupport openssl)
|
++ (op opensslSupport openssl)
|
||||||
++ (op gdbmSupport gdbm)
|
++ (op gdbmSupport gdbm)
|
||||||
++ (op yamlSupport libyaml)
|
++ (op yamlSupport libyaml)
|
||||||
|
++ (op jemallocSupport jemalloc)
|
||||||
# Looks like ruby fails to build on darwin without readline even if curses
|
# Looks like ruby fails to build on darwin without readline even if curses
|
||||||
# support is not enabled, so add readline to the build inputs if curses
|
# support is not enabled, so add readline to the build inputs if curses
|
||||||
# support is disabled (if it's enabled, we already have it) and we're
|
# support is disabled (if it's enabled, we already have it) and we're
|
||||||
@ -134,6 +136,7 @@ let
|
|||||||
++ op useRailsExpress "--with-baseruby=${baseruby}/bin/ruby"
|
++ op useRailsExpress "--with-baseruby=${baseruby}/bin/ruby"
|
||||||
++ op (!jitSupport) "--disable-jit-support"
|
++ op (!jitSupport) "--disable-jit-support"
|
||||||
++ op (!docSupport) "--disable-install-doc"
|
++ op (!docSupport) "--disable-install-doc"
|
||||||
|
++ op (jemallocSupport) "--with-jemalloc"
|
||||||
++ ops stdenv.isDarwin [
|
++ ops stdenv.isDarwin [
|
||||||
# on darwin, we have /usr/include/tk.h -- so the configure script detects
|
# on darwin, we have /usr/include/tk.h -- so the configure script detects
|
||||||
# that tk is installed
|
# that tk is installed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user