summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-01-17 17:26:17 +0900
committerGitHub <noreply@github.com>2023-01-17 17:26:17 +0900
commit482f442b2244efa5783c7e6f9794a9bedfa77105 (patch)
treeaf807bd99c16e55c4729bafcaefaae1295b16508
parent77861ff281b67c9c2a689bce2332c26f3736cd3f (diff)
parentad1502202c72fe01aefe1035b392e0363c43cb6f (diff)
downloadpsych-482f442b2244efa5783c7e6f9794a9bedfa77105.tar.gz
Merge pull request #616 from ruby/fix-libyaml-host-name
configure of libyaml couldn't detect "arm64-apple-darwin22" for build host
-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"),
]