Skip to content

Commit 482f442

Browse files
authored
Merge pull request #616 from ruby/fix-libyaml-host-name
configure of libyaml couldn't detect "arm64-apple-darwin22" for build host
2 parents 77861ff + ad15022 commit 482f442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/psych/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
args = [
2323
yaml_configure,
2424
"--enable-#{shared ? 'shared' : 'static'}",
25-
"--host=#{RbConfig::CONFIG['host'].sub(/-unknown-/, '-')}",
25+
"--host=#{RbConfig::CONFIG['host'].sub(/-unknown-/, '-').sub(/arm64/, 'arm')}",
2626
"CC=#{RbConfig::CONFIG['CC']}",
2727
*(["CFLAGS=-w"] if RbConfig::CONFIG["GCC"] == "yes"),
2828
]

0 commit comments

Comments
 (0)