rubyMinimal: Disable JIT support and remove cc refs

To make rubyMinimal truely minimal, it shouldn't reference stdenv.cc
This commit is contained in:
Doron Behar 2020-06-07 10:31:58 +03:00
parent 0ab3c6b7d0
commit bb8ea13840
2 changed files with 3 additions and 1 deletions

View file

@ -159,7 +159,7 @@ let
$out/lib/libruby*
${removeReferencesTo}/bin/remove-references-to \
-t ${stdenv.cc} \
$out/lib/ruby/${version}/${stdenv.targetPlatform.system}/rbconfig.rb
$out/${passthru.libPath}/${stdenv.targetPlatform.system}/rbconfig.rb
''
}
# Bundler tries to create this directory

View file

@ -9777,6 +9777,8 @@ in
rubyMinimal = ruby.override {
# gem support is minimal overhead
rubygemsSupport = true;
removeReferenceToCC = true;
JitSupport = false;
useRailsExpress = false;
zlibSupport = false;
opensslSupport = false;