summaryrefslogtreecommitdiff
path: root/tool/mkconfig.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-14 16:44:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-14 16:44:45 +0000
commita7ce662a85ac1827fe644436c09fe7dee567695d (patch)
tree0baaf1ba751d6f8de32b2342661c3d884eef99de /tool/mkconfig.rb
parent06975d613a3ae8e926a34e4ebbc25be86b8a7aee (diff)
Unicode Version in RbConfig
* tool/mkconfig.rb: provide Unicode Version information as RbConfig::CONFIG['UNICODE_VERSION']. [ruby-core:75845] [Feature #12460] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/mkconfig.rb')
-rwxr-xr-xtool/mkconfig.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb
index 566f5a3..6b6f14c 100755
--- a/tool/mkconfig.rb
+++ b/tool/mkconfig.rb
@@ -9,6 +9,7 @@
$install_name ||= nil
$so_name ||= nil
$cross_compiling ||= nil
+$unicode_version ||= nil
arch = $arch or raise "missing -arch"
version = $version or raise "missing -version"
@@ -235,6 +236,9 @@ end
print(*v_fast)
print(*v_others)
+print <<EOS if $unicode_version
+ CONFIG["UNICODE_VERSION"] = #{$unicode_version.dump}
+EOS
print <<EOS if /darwin/ =~ arch
CONFIG["SDKROOT"] = ENV["SDKROOT"] || "" # don't run xcrun everytime, usually useless.
EOS