[libc-commits] [PATCH] D141997: [libc][NFC] Detect host CPU features using try_compile instead of try_run.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Jan 18 01:00:38 PST 2023


sivachandra created this revision.
sivachandra added a reviewer: gchatelet.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
sivachandra requested review of this revision.

This fixes scenarios like the runtime build wherein the clang is
built to use libcxx or libunwind by default which are either not yet
built or not yet installed in the places where the clang driver expects
them.

Fixes llvm/llvm-project#59762


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141997

Files:
  libc/cmake/modules/LLVMLibCCheckCpuFeatures.cmake
  libc/cmake/modules/cpu_features/check_cpu_features.cpp.in

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141997.490070.patch
Type: text/x-patch
Size: 4447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230118/cdbcfa96/attachment.bin>


More information about the libc-commits mailing list