summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-01-17 17:11:34 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-01-17 17:20:16 +0900
commitad1502202c72fe01aefe1035b392e0363c43cb6f (patch)
treeaf807bd99c16e55c4729bafcaefaae1295b16508
parent77861ff281b67c9c2a689bce2332c26f3736cd3f (diff)
downloadpsych-ad1502202c72fe01aefe1035b392e0363c43cb6f.tar.gz
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 ***
-rw-r--r--ext/psych/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb
index 41daf8c..e7dd0bb 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"),
]