llvm-toolchain/debian/patches/force-sse2-compiler-rt.diff
2023-11-01 13:04:41 +01:00

18 lines
885 B
Diff

Index: llvm-toolchain-snapshot_18~++20231101090856+e144ae54dcb9/compiler-rt/lib/builtins/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_18~++20231101090856+e144ae54dcb9.orig/compiler-rt/lib/builtins/CMakeLists.txt
+++ llvm-toolchain-snapshot_18~++20231101090856+e144ae54dcb9/compiler-rt/lib/builtins/CMakeLists.txt
@@ -764,6 +764,12 @@ else ()
append_list_if(COMPILER_RT_ENABLE_CET -fcf-protection=full BUILTIN_CFLAGS)
endif()
+ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64")
+ append_list_if(COMPILER_RT_HAS_FLOAT16 -msse2 -DCOMPILER_RT_HAS_FLOAT16 BUILTIN_CFLAGS)
+ else ()
+ append_list_if(COMPILER_RT_HAS_FLOAT16 -DCOMPILER_RT_HAS_FLOAT16 BUILTIN_CFLAGS)
+ endif()
+
append_list_if(COMPILER_RT_HAS_STD_C11_FLAG -std=c11 BUILTIN_CFLAGS)
# Don't embed directives for picking any specific CRT