2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2025-01-03 06:57:31 +01:00

Issue 1524 - ruby configuration in 2.2

This commit is contained in:
Thomas Nagy 2014-12-29 20:01:02 +01:00
parent 6c11f91e12
commit 0b926c7682
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -101,7 +101,7 @@ def check_ruby_ext_devel(self):
return Utils.to_list(self.cmd_and_log(self.env.RUBY + ['-rrbconfig', '-e', cmd])) return Utils.to_list(self.cmd_and_log(self.env.RUBY + ['-rrbconfig', '-e', cmd]))
def read_config(key): def read_config(key):
return read_out('puts Config::CONFIG[%r]' % key) return read_out('puts RbConfig::CONFIG[%r]' % key)
ruby = self.env['RUBY'] ruby = self.env['RUBY']
archdir = read_config('archdir') archdir = read_config('archdir')