diff --git a/ci/build.sh b/ci/build.sh
index eb07c182ead6d39d81a4f5d99da03d2d3b0cd393..77da36c933067062526b4bf009d7cbefb99b7fa6 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