aboutsummaryrefslogtreecommitdiff
path: root/lang/swift510/files/patch-llvm-project_compiler-rt_cmake_config-ix.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'lang/swift510/files/patch-llvm-project_compiler-rt_cmake_config-ix.cmake')
-rw-r--r--lang/swift510/files/patch-llvm-project_compiler-rt_cmake_config-ix.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/swift510/files/patch-llvm-project_compiler-rt_cmake_config-ix.cmake b/lang/swift510/files/patch-llvm-project_compiler-rt_cmake_config-ix.cmake
new file mode 100644
index 000000000000..68b83511e683
--- /dev/null
+++ b/lang/swift510/files/patch-llvm-project_compiler-rt_cmake_config-ix.cmake
@@ -0,0 +1,13 @@
+--- llvm-project/compiler-rt/cmake/config-ix.cmake.orig 2024-05-24 18:46:43 UTC
++++ llvm-project/compiler-rt/cmake/config-ix.cmake
+@@ -237,6 +237,10 @@ test_targets()
+
+ test_targets()
+
++if(COMPILER_RT_SUPPORTED_ARCH)
++ list(REMOVE_ITEM COMPILER_RT_SUPPORTED_ARCH i386)
++endif()
++
+ # Returns a list of architecture specific target cflags in @out_var list.
+ function(get_target_flags_for_arch arch out_var)
+ list(FIND COMPILER_RT_SUPPORTED_ARCH ${arch} ARCH_INDEX)