summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-11-07 10:55:07 +1300
committerPhilip Arndt <parndt@gmail.com>2011-11-07 10:55:07 +1300
commit0e4ff17bb71c4eebbb05c2db01f6c638acbe9a96 (patch)
tree9551b10b4c74867fd571970a344ddec414f1f75d
parenteb2058b8f98f3fe00e6feef8dce73214cb557cf9 (diff)
downloadsystemu-0e4ff17bb71c4eebbb05c2db01f6c638acbe9a96.tar.gz
Apply same logic to Rakefile for RbConfig as found in lib/systemu.rb
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index ae00991..fdf4f20 100644
--- a/Rakefile
+++ b/Rakefile
@@ -277,7 +277,7 @@ BEGIN {
# discover full path to this ruby executable
#
- c = Config::CONFIG
+ c = begin; ::RbConfig::CONFIG; rescue NameError; ::Config::CONFIG; end
bindir = c["bindir"] || c['BINDIR']
ruby_install_name = c['ruby_install_name'] || c['RUBY_INSTALL_NAME'] || 'ruby'
ruby_ext = c['EXEEXT'] || ''