diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-01-17 17:11:34 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-01-17 08:26:22 +0000 |
commit | dd510da89a169baf8a104796925431a14b0920f1 (patch) | |
tree | fd08e38925c663b3144199674512e15562b5cbe3 /ext | |
parent | 01e28afd0ab6432482d68bd8098ba2540cfdcbd3 (diff) | |
download | ruby-dd510da89a169baf8a104796925431a14b0920f1.tar.gz |
[ruby/psych] configure of libyaml couldn't detect "arm64-apple-darwin22" for build host.
checking whether make sets $(MAKE)... (cached) yes
checking build system type... arm-apple-darwin21.6.0
checking host system type... Invalid configuration `arm64-apple-darwin21': machine `arm64-apple' not recognized
configure: error: /bin/sh /Users/hsbt/Downloads/yaml-0.2.5/config/config.sub arm64-apple-darwin21 failed
*** extconf.rb failed ***
https://github.com/ruby/psych/commit/ad1502202c
Diffstat (limited to 'ext')
-rw-r--r-- | ext/psych/extconf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb index 41daf8c238..e7dd0bb60a 100644 --- a/ext/psych/extconf.rb +++ b/ext/psych/extconf.rb @@ -22,7 +22,7 @@ if yaml_source args = [ yaml_configure, "--enable-#{shared ? 'shared' : 'static'}", - "--host=#{RbConfig::CONFIG['host'].sub(/-unknown-/, '-')}", + "--host=#{RbConfig::CONFIG['host'].sub(/-unknown-/, '-').sub(/arm64/, 'arm')}", "CC=#{RbConfig::CONFIG['CC']}", *(["CFLAGS=-w"] if RbConfig::CONFIG["GCC"] == "yes"), ] |