[前][次][番号順一覧][スレッド一覧]

ruby-changes:43343

From: nobu <ko1@a...>
Date: Wed, 15 Jun 2016 01:44:49 +0900 (JST)
Subject: [ruby-changes:43343] nobu:r55417 (trunk): Unicode Version in RbConfig

nobu	2016-06-15 01:44:45 +0900 (Wed, 15 Jun 2016)

  New Revision: 55417

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55417

  Log:
    Unicode Version in RbConfig
    
    * tool/mkconfig.rb: provide Unicode Version information as
      RbConfig::CONFIG['UNICODE_VERSION'].
      [ruby-core:75845] [Feature #12460]

  Modified files:
    trunk/ChangeLog
    trunk/common.mk
    trunk/tool/mkconfig.rb
Index: tool/mkconfig.rb
===================================================================
--- tool/mkconfig.rb	(revision 55416)
+++ tool/mkconfig.rb	(revision 55417)
@@ -9,6 +9,7 @@ https://github.com/ruby/ruby/blob/trunk/tool/mkconfig.rb#L9
 $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 https://github.com/ruby/ruby/blob/trunk/tool/mkconfig.rb#L236
 
 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
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55416)
+++ ChangeLog	(revision 55417)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jun 15 01:44:42 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* tool/mkconfig.rb: provide Unicode Version information as
+	  RbConfig::CONFIG['UNICODE_VERSION'].
+	  [ruby-core:75845] [Feature #12460]
+
 Wed Jun 15 00:01:18 2016  Kazuhiro NISHIYAMA  <zn@m...>
 
 	* test/ruby/enc/test_case_comprehensive.rb
Index: common.mk
===================================================================
--- common.mk	(revision 55416)
+++ common.mk	(revision 55417)
@@ -628,7 +628,9 @@ $(RBCONFIG): $(srcdir)/tool/mkconfig.rb https://github.com/ruby/ruby/blob/trunk/common.mk#L628
 		-cross_compiling=$(CROSS_COMPILING) \
 		-arch=$(arch) -version=$(RUBY_PROGRAM_VERSION) \
 		-install_name=$(RUBY_INSTALL_NAME) \
-		-so_name=$(RUBY_SO_NAME) > rbconfig.tmp
+		-so_name=$(RUBY_SO_NAME) \
+		-unicode_version=$(UNICODE_VERSION) \
+	> rbconfig.tmp
 	$(IFCHANGE) "--timestamp=$@" rbconfig.rb rbconfig.tmp
 
 test-rubyspec-precheck:

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]