[all-commits] [llvm/llvm-project] c4819e: [CMake][libc] Don't do CPU feature detection when ...

Petr Hosek via All-commits all-commits at lists.llvm.org
Thu Jan 28 12:55:05 PST 2021

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c4819eec1a2aea4758cc1ed38aefb0f1c9dec94a
  Author: Petr Hosek <phosek at google.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M libc/cmake/modules/LLVMLibCCheckCpuFeatures.cmake
    M libc/test/src/string/CMakeLists.txt

  Log Message:
  [CMake][libc] Don't do CPU feature detection when cross-compiling

We won't be able to run the compiled program since it will be compiled
for different system. We instead allow passing the CPU features via
CMake option in that case.

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

More information about the All-commits mailing list