@@ -23,6 +23,7 @@ def test_ridk_enable
2323 out = run_output_vars ( [ ] , [ "ridk enable" ] , %w[ PATH MSYSTEM ] )
2424
2525 msystem = case RUBY_PLATFORM
26+ when "aarch64-mingw-ucrt" then "CLANGARM64"
2627 when "x64-mingw32" then "MINGW64"
2728 when "x64-mingw-ucrt" then "UCRT64"
2829 when "i386-mingw32" then "MINGW32"
@@ -89,7 +90,7 @@ def test_ridk_version
8990 assert_equal RUBY_PLATFORM , y [ "ruby" ] [ "platform" ]
9091 refute_nil y [ "ruby_installer" ] [ "package_version" ]
9192 refute_nil y [ "ruby_installer" ] [ "git_commit" ]
92- assert_match ( /gcc.*MSYS2/ , y [ "cc" ] )
93+ assert_match ( /gcc.*MSYS2|clang / , y [ "cc" ] )
9394 assert_match ( /bash.*-pc-/ , y [ "sh" ] )
9495 assert_match ( /windows/i , y [ "os" ] )
9596 assert_equal msys_path , y [ "msys2" ] [ "path" ] . downcase
@@ -103,7 +104,7 @@ def test_ridk_version_without_msys
103104
104105 assert_equal RUBY_VERSION , y [ "ruby" ] [ "version" ]
105106 assert_equal RUBY_PLATFORM , y [ "ruby" ] [ "platform" ]
106- assert_match ( /gcc.*MSYS2/ , y [ "ruby" ] [ "cc" ] || y [ "cc" ] )
107+ assert_match ( /gcc.*MSYS2|clang / , y [ "ruby" ] [ "cc" ] || y [ "cc" ] )
107108 refute_nil y [ "ruby_installer" ] [ "package_version" ]
108109 refute_nil y [ "ruby_installer" ] [ "git_commit" ]
109110 assert_nil y [ "msys2" ]
0 commit comments