diff --git a/ci/build.sh b/ci/build.sh
index eb07c182ead6d..77da36c933067 100644
--- a/ci/build.sh
+++ b/ci/build.sh
@@ -23,6 +23,11 @@ test_target() {
         # See https://github.com/rust-lang/rust/issues/45417
         opt="--release"
     fi
+    # FIXME: https://github.com/rust-lang/rust/issues/61174
+    if [ "${TARGET}" = "sparcv9-sun-solaris" ] ||
+       [ "${TARGET}" = "x86_64-sun-solaris" ]; then
+        return 0
+    fi
 
     # If there is a std component, fetch it:
     if [ "${NO_STD}" != "1" ]; then