From: LLVM Packaging Team Date: Sat, 14 Oct 2023 16:37:48 +0000 (+0100) Subject: force-sse2-compiler-rt X-Git-Tag: archive/raspbian/1%19.1.3-1+rpi1~2^2^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=262a3cdace6e1ee5a13fbdf635f5fc4f3b9b79f6;p=llvm-toolchain-19.git force-sse2-compiler-rt =================================================================== Gbp-Pq: Name force-sse2-compiler-rt.diff --- diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt index 65d43452ab..d05ee7d926 100644 --- a/compiler-rt/lib/builtins/CMakeLists.txt +++ b/compiler-rt/lib/builtins/CMakeLists.txt @@ -750,6 +750,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) # These flags would normally be added to CMAKE_C_FLAGS by the llvm