Skip to content

Commit

Permalink
rubyMinimal: Disable JIT support and remove cc refs
Browse files Browse the repository at this point in the history
To make rubyMinimal truely minimal, it shouldn't reference stdenv.cc
  • Loading branch information
doronbehar committed Jun 7, 2020
1 parent 0ab3c6b commit bb8ea13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/interpreters/ruby/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bb8ea13

Please sign in to comment.