Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Build C-exts properly for 2.0 language mode. Fixes #2086.

  • Loading branch information...
commit 146bdc0053929fd02ac293601bd8eb4b9a4a97d1 1 parent 5088b79
@brixen brixen authored
Showing with 15 additions and 4 deletions.
  1. +15 −4 rakelib/extensions.rake
View
19 rakelib/extensions.rake
@@ -123,13 +123,24 @@ File.open(build_ruby, "wb") do |f|
f.puts build_version
end
-enabled_18 = BUILD_CONFIG[:version_list].include?("18")
-enabled_19 = BUILD_CONFIG[:version_list].include?("19")
+if BUILD_CONFIG[:version_list].include?("18")
+ enabled_18 = true
+ melbourne_env = "-X18"
+end
+
+if BUILD_CONFIG[:version_list].include?("19")
+ enabled_19 = true
+ melbourne_env = "-X19"
+end
+
+if BUILD_CONFIG[:version_list].include?("20")
+ enabled_20 = true
+ melbourne_env = "-X20"
+end
compile_ext "melbourne", :task => "build",
:doc => "for bootstrapping"
-melbourne_env = enabled_19 ? "-X19" : "-X18"
compile_ext "melbourne", :task => "rbx",
:env => melbourne_env,
:doc => "for Rubinius"
@@ -180,7 +191,7 @@ if enabled_18
:env => "-X18"
end
-if enabled_19
+if enabled_19 || enabled_20
compile_ext "19/bigdecimal", :dir => "#{libprefixdir}/19/bigdecimal/ext",
:deps => ["Makefile", "extconf.rb"],
:env => "-X19"
Please sign in to comment.
Something went wrong with that request. Please try again.