From: LLVM Packaging Team Date: Mon, 16 Oct 2023 13:14:10 +0000 (+0000) Subject: force-sse2-compiler-rt X-Git-Tag: archive/raspbian/1%16.0.6-15_deb12u1+rpi1^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c8ea72c6759d6502d7b8d1dca5bd56211feae91f;p=llvm-toolchain-16.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