--- llvm-18.1.8.src/compiler-rt/lib/builtins/CMakeLists.txt.orig	2024-10-15 10:17:37.000000000 +0200
+++ llvm-18.1.8.src/compiler-rt/lib/builtins/CMakeLists.txt	2024-10-24 19:33:06.965240631 +0200
@@ -867,17 +867,17 @@
           endif()
         endif()
       endif()
-      check_c_source_compiles("_Float16 foo(_Float16 x) { return x; }
-                               int main(void) { return 0; }"
-                              COMPILER_RT_HAS_${arch}_FLOAT16)
-      append_list_if(COMPILER_RT_HAS_${arch}_FLOAT16 -DCOMPILER_RT_HAS_FLOAT16 BUILTIN_CFLAGS_${arch})
-      check_c_source_compiles("__bf16 foo(__bf16 x) { return x; }
-                               int main(void) { return 0; }"
-                              COMPILER_RT_HAS_${arch}_BFLOAT16)
-      # Build BF16 files only when "__bf16" is available.
-      if(COMPILER_RT_HAS_${arch}_BFLOAT16)
-        list(APPEND ${arch}_SOURCES ${BF16_SOURCES})
-      endif()
+      #check_c_source_compiles("_Float16 foo(_Float16 x) { return x; }
+      #                         int main(void) { return 0; }"
+      #                        COMPILER_RT_HAS_${arch}_FLOAT16)
+      #append_list_if(COMPILER_RT_HAS_${arch}_FLOAT16 -DCOMPILER_RT_HAS_FLOAT16 BUILTIN_CFLAGS_${arch})
+      #check_c_source_compiles("__bf16 foo(__bf16 x) { return x; }
+      #                         int main(void) { return 0; }"
+      #                        COMPILER_RT_HAS_${arch}_BFLOAT16)
+      ## Build BF16 files only when "__bf16" is available.
+      #if(COMPILER_RT_HAS_${arch}_BFLOAT16)
+      #  list(APPEND ${arch}_SOURCES ${BF16_SOURCES})
+      #endif()
 
       # Remove a generic C builtin when an arch-specific builtin is specified.
       filter_builtin_sources(${arch}_SOURCES ${arch})
