[PATCH] D47217: [cmake] [ARM] Exclude any VFP builtins if VFP is not supported
Azharuddin Mohammed via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 30 11:19:29 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL338284: [cmake] [ARM] Exclude any VFP builtins if VFP is not supported (authored by azharudd, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D47217?vs=156948&id=158021#toc
Repository:
rL LLVM
https://reviews.llvm.org/D47217
Files:
compiler-rt/trunk/lib/builtins/CMakeLists.txt
Index: compiler-rt/trunk/lib/builtins/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/lib/builtins/CMakeLists.txt
+++ compiler-rt/trunk/lib/builtins/CMakeLists.txt
@@ -567,6 +567,15 @@
set(_arch "arm")
endif()
+ # For ARM archs, exclude any VFP builtins if VFP is not supported
+ if (${arch} MATCHES "^(arm|armhf|armv7|armv7s|armv7k|armv7m|armv7em)$")
+ string(REPLACE ";" " " _TARGET_${arch}_CFLAGS "${TARGET_${arch}_CFLAGS}")
+ check_compile_definition(__VFP_FP__ "${CMAKE_C_FLAGS} ${_TARGET_${arch}_CFLAGS}" COMPILER_RT_HAS_${arch}_VFP)
+ if(NOT COMPILER_RT_HAS_${arch}_VFP)
+ list(REMOVE_ITEM ${arch}_SOURCES ${arm_Thumb1_VFPv2_SOURCES} ${arm_Thumb1_SjLj_EH_SOURCES})
+ endif()
+ endif()
+
# Filter out generic versions of routines that are re-implemented in
# architecture specific manner. This prevents multiple definitions of the
# same symbols, making the symbol selection non-deterministic.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47217.158021.patch
Type: text/x-patch
Size: 1049 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180730/6b5e7c17/attachment.bin>
More information about the llvm-commits
mailing list