Skip to content

Commit ad15022

Browse files
committed
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 ***
1 parent 77861ff commit ad15022

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)