[PATCH] D122931: [CMake][compiler-rt] Support for using in-tree libc++
Petr Hosek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 1 12:25:32 PDT 2022
phosek created this revision.
phosek added reviewers: ldionne, smeenai, beanz.
Herald added subscribers: abrachet, mgorny, dberris.
Herald added a project: All.
phosek requested review of this revision.
Herald added projects: clang, Sanitizers.
Herald added subscribers: Sanitizers, cfe-commits.
compiler-rt build has several options for choosing C++ ABI and C++
library for testing. These options are inadequate and incorrect as they
don't set the dependencies correctly when using in-tree libc++ and don't
support runtimes like ORC or XRay that use C++ library.
This change replaces these options with COMPILER_RT_USE_LIBCXX that
determines whether to use in-tree libc++ or not. If yes, it correctly
sets the dependendencies using generator expresions. If not, users
should use standard flags like CMAKE_CXX_FLAGS to select their preferred
C++ standard library.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122931
Files:
clang/cmake/caches/Fuchsia-stage2.cmake
compiler-rt/CMakeLists.txt
compiler-rt/lib/fuzzer/CMakeLists.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122931.419830.patch
Type: text/x-patch
Size: 14658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220401/98c552ad/attachment-0001.bin>
More information about the cfe-commits
mailing list