summaryrefslogtreecommitdiff
path: root/tool/mkconfig.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-25 22:00:15 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-25 22:09:28 +0900
commit4adb2d655dcd54b28366b4d17e86b21e2b622cd1 (patch)
treecf0c6f8f6372ccbf9e80097fa9db1e5b2dfcc57d /tool/mkconfig.rb
parent48a5c155fa850fd0c0ea8b5b9219967b6e7181f9 (diff)
downloadruby-4adb2d655dcd54b28366b4d17e86b21e2b622cd1.tar.gz
Make RbConfig::CONFIG values mutable [Bug #16738]
As `RbConfig.expand` modifies the argument and involved `CONFIG` values, its values should be mutable.
Diffstat (limited to 'tool/mkconfig.rb')
-rwxr-xr-xtool/mkconfig.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb
index c0aced8686..4cd47aefb4 100755
--- a/tool/mkconfig.rb
+++ b/tool/mkconfig.rb
@@ -268,7 +268,7 @@ print <<EOS if $unicode_emoji_version
CONFIG["UNICODE_EMOJI_VERSION"] = #{$unicode_emoji_version.dump}
EOS
print <<EOS if /darwin/ =~ arch
- CONFIG["SDKROOT"] = ENV["SDKROOT"] || "" # don't run xcrun every time, usually useless.
+ CONFIG["SDKROOT"] = "\#{ENV['SDKROOT']}" # don't run xcrun every time, usually useless.
EOS
print <<EOS
CONFIG["archdir"] = "$(rubyarchdir)"