[PATCH] D98737: [compiler-rt] Use try_compile_only to check for __ARM_FP
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 16 13:22:02 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGcfb978d85fe1: [compiler-rt] Use try_compile_only to check for __ARM_FP (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98737/new/
https://reviews.llvm.org/D98737
Files:
compiler-rt/lib/builtins/CMakeLists.txt
Index: compiler-rt/lib/builtins/CMakeLists.txt
===================================================================
--- compiler-rt/lib/builtins/CMakeLists.txt
+++ compiler-rt/lib/builtins/CMakeLists.txt
@@ -707,10 +707,11 @@
list(REMOVE_ITEM ${arch}_SOURCES ${arm_Thumb1_VFPv2_DP_SOURCES} ${arm_Thumb1_VFPv2_SP_SOURCES} ${arm_Thumb1_SjLj_EH_SOURCES})
else()
# Exclude any double-precision builtins if VFP is single-precision-only
- check_c_source_compiles("#if !(__ARM_FP & 0x8)
+ try_compile_only(COMPILER_RT_HAS_${arch}_VFP_DP
+ SOURCE "#if !(__ARM_FP & 0x8)
#error No double-precision support!
#endif
- int main() { return 0; }" COMPILER_RT_HAS_${arch}_VFP_DP)
+ int main() { return 0; }")
if(NOT COMPILER_RT_HAS_${arch}_VFP_DP)
list(REMOVE_ITEM ${arch}_SOURCES ${arm_Thumb1_VFPv2_DP_SOURCES})
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98737.331086.patch
Type: text/x-patch
Size: 1055 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210316/5a638b33/attachment.bin>
More information about the llvm-commits
mailing list