mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-10-05 09:56:00 +00:00
18 lines
885 B
Diff
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
|