[libcxx-commits] [libcxx] 1d0f795 - [libc++] Make sure cxx_experimental links against libc++ headers

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 19 07:41:47 PDT 2022


Author: Louis Dionne
Date: 2022-07-19T10:41:36-04:00
New Revision: 1d0f79558ca47f50119fb38c62ff5afd3160d260

URL: https://github.com/llvm/llvm-project/commit/1d0f79558ca47f50119fb38c62ff5afd3160d260
DIFF: https://github.com/llvm/llvm-project/commit/1d0f79558ca47f50119fb38c62ff5afd3160d260.diff

LOG: [libc++] Make sure cxx_experimental links against libc++ headers

This should fix builds where we build neither the static nor the shared
library.

Added: 
    

Modified: 
    libcxx/src/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libcxx/src/CMakeLists.txt b/libcxx/src/CMakeLists.txt
index 28436fbf38f4b..efa477715be2b 100644
--- a/libcxx/src/CMakeLists.txt
+++ b/libcxx/src/CMakeLists.txt
@@ -320,6 +320,7 @@ if (LIBCXX_ENABLE_EXPERIMENTAL_LIBRARY)
     experimental/memory_resource.cpp
     )
   add_library(cxx_experimental STATIC ${LIBCXX_EXPERIMENTAL_SOURCES})
+  target_link_libraries(cxx_experimental PUBLIC cxx-headers)
   if (LIBCXX_ENABLE_SHARED)
     target_link_libraries(cxx_experimental PRIVATE cxx_shared)
   else()


        


More information about the libcxx-commits mailing list