[libcxx-commits] [PATCH] D119539: [libcxx] [cmake] Fix linking to installed libc++abi in runtimes build

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 14 15:15:56 PST 2022


ldionne added inline comments.


================
Comment at: libcxx/cmake/Modules/HandleLibCXXABI.cmake:110
 
-  if(LIBCXX_STANDALONE_BUILD AND NOT (LIBCXX_CXX_ABI_INTREE OR HAVE_LIBCXXABI))
-    set(shared c++abi)
-    set(static c++abi)
-  else()
+  if(TARGET cxxabi_shared OR TARGET cxxabi_static)
     set(shared cxxabi_shared)
----------------
I think this doesn't work because `cxxabi_shared` and `cxxabi_static` might not be known by the time we get here. What is the behavior you'd like to see here? Are you attempting to link against the system `libc++abi.so`?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119539/new/

https://reviews.llvm.org/D119539



More information about the libcxx-commits mailing list