summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-14 04:04:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-14 04:04:48 +0000
commit0bb7f0c5c18172d09a0f4da66c0b0b104fc3ecca (patch)
treec4c24ec1642a2e4de59c780463b973679dde776d
parenta9acbeed78358a843e411bbcd9c077077fde9e07 (diff)
Unicode version check
* common.mk (RBCONFIG): check if Unicode versions match. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--common.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index 24c82b5c653..17428ffacb0 100644
--- a/common.mk
+++ b/common.mk
@@ -624,6 +624,11 @@ extconf: $(PREP)
$(RUNRUBY) -C "$(EXTCONFDIR)" $(EXTCONF) $(EXTCONFARGS)
$(RBCONFIG): $(srcdir)/tool/mkconfig.rb config.status $(srcdir)/version.h
+ $(Q)$(BOOTSTRAPRUBY) -n \
+ -e 'BEGIN{version=ARGV.shift;ok=false}' \
+ -e 'END{abort "UNICODE version mismatch" unless ok}' \
+ -e '(ARGF.close; ok = true) if /ONIG_UNICODE_VERSION_STRING +"#{Regexp.quote(version)}"/o' \
+ $(UNICODE_VERSION) $(srcdir)/enc/unicode/casefold.h
$(Q)$(BOOTSTRAPRUBY) $(srcdir)/tool/mkconfig.rb \
-cross_compiling=$(CROSS_COMPILING) \
-arch=$(arch) -version=$(RUBY_PROGRAM_VERSION) \