[all-commits] [llvm/llvm-project] cfb978: [compiler-rt] Use try_compile_only to check for __...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Tue Mar 16 13:22:17 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cfb978d85fe131493f37a1bc8beeb3898deccca0
      https://github.com/llvm/llvm-project/commit/cfb978d85fe131493f37a1bc8beeb3898deccca0
  Author: Martin Storsjö <martin at martin.st>
  Date:   2021-03-16 (Tue, 16 Mar 2021)

  Changed paths:
    M compiler-rt/lib/builtins/CMakeLists.txt

  Log Message:
  -----------
  [compiler-rt] Use try_compile_only to check for __ARM_FP

This fixes detection when linking isn't supported (i.e. while building
builtins the first time).

Since 8368e4d54c459fe173d76277f17c632478e91add, after setting
CMAKE_TRY_COMPILE_TARGET_TYPE to STATIC_LIBRARY, this isn't strictly
needed, but is good for correctness anyway (and in case that commit
ends up reverted).

Differential Revision: https://reviews.llvm.org/D98737




More information about the All-commits mailing list