From: LLVM Packaging Team Date: Mon, 11 Sep 2023 13:40:42 +0000 (+0100) Subject: force-sse2-compiler-rt X-Git-Tag: archive/raspbian/1%16.0.6-15+rpi1~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8732a7e9f1b69cacbc6d2a7225d1adb52371bc89;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