diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2026-02-03 15:27:57 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2026-02-05 11:26:39 +0900 |
| commit | 8b46c20e740b5ebdf7aa7aaa6ca8ed11d6bb5568 (patch) | |
| tree | 64820fdaaa8f9a5a54c09e3a0c3986b4acf6c4d3 | |
| parent | ad0ac0ec2fd9bbbe1fc69cb9609a56571ca6d63f (diff) | |
Split RBCONFIG recipe
And make `ifchange` a pipeline; it works even on Windows now.
| -rw-r--r-- | common.mk | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -938,19 +938,23 @@ rbconfig.rb: $(RBCONFIG) $(HAVE_BASERUBY:no=)$(RBCONFIG)$(HAVE_BASERUBY:no=): $(PREP) $(RBCONFIG): $(tooldir)/mkconfig.rb config.status $(srcdir)/version.h $(srcdir)/common.mk +$(RBCONFIG): unicode-version + +unicode-version: $(Q)$(BOOTSTRAPRUBY) -n \ -e 'BEGIN{version=ARGV.shift;mis=ARGV.dup}' \ -e 'END{abort "UNICODE version mismatch: #{mis}" unless mis.empty?}' \ -e '(mis.delete(ARGF.path); ARGF.close) if /ONIG_UNICODE_VERSION_STRING +"#{Regexp.quote(version)}"/o' \ $(UNICODE_VERSION) $(UNICODE_DATA_HEADERS) + +$(RBCONFIG): $(Q)$(BOOTSTRAPRUBY) $(tooldir)/mkconfig.rb \ -arch=$(arch) -version=$(RUBY_PROGRAM_VERSION) \ -install_name=$(RUBY_INSTALL_NAME) \ -so_name=$(RUBY_SO_NAME) \ -unicode_version=$(UNICODE_VERSION) \ -unicode_emoji_version=$(UNICODE_EMOJI_VERSION) \ - > rbconfig.tmp - $(IFCHANGE) "--timestamp=$@" rbconfig.rb rbconfig.tmp + | $(IFCHANGE) "--timestamp=$@" rbconfig.rb - test-rubyspec: test-spec yes-test-rubyspec: yes-test-spec |
