summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-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'] || ''