[libcxx-commits] [libcxxabi] e54828a - [libc++abi] Ensure custom libc++ header paths are honoured during libc++abi build
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jun 15 10:24:47 PDT 2020
Author: Louis Dionne
Date: 2020-06-15T13:22:51-04:00
New Revision: e54828ad47d92666a9d17d0993bbd41930a66a88
URL: https://github.com/llvm/llvm-project/commit/e54828ad47d92666a9d17d0993bbd41930a66a88
DIFF: https://github.com/llvm/llvm-project/commit/e54828ad47d92666a9d17d0993bbd41930a66a88.diff
LOG: [libc++abi] Ensure custom libc++ header paths are honoured during libc++abi build
This is necessary for standalone builds where the libc++ in use has a
custom configuration set up inside __config_site -- one needs to build
libc++abi against the installed headers of libc++ (which are properly
configured) instead of the ones inside libcxx/include.
See https://reviews.llvm.org/rGe619e9d#927848 for details.
Added:
Modified:
libcxxabi/CMakeLists.txt
Removed:
################################################################################
diff --git a/libcxxabi/CMakeLists.txt b/libcxxabi/CMakeLists.txt
index d4ffcf89017e..08bc8dcee65a 100644
--- a/libcxxabi/CMakeLists.txt
+++ b/libcxxabi/CMakeLists.txt
@@ -126,13 +126,11 @@ if (NOT LIBCXXABI_ENABLE_SHARED AND NOT LIBCXXABI_ENABLE_STATIC)
message(FATAL_ERROR "libc++abi must be built as either a shared or static library.")
endif()
-set(LIBCXXABI_LIBCXX_PATH "${CMAKE_CURRENT_LIST_DIR}/../libcxx")
-set(LIBCXXABI_LIBCXX_INCLUDES "${LIBCXXABI_LIBCXX_PATH}/include")
-
set(LIBCXXABI_LIBCXX_PATH "${CMAKE_CURRENT_LIST_DIR}/../libcxx" CACHE PATH
- "Specify path to libc++ source." FORCE)
+ "Specify path to libc++ source.")
set(LIBCXXABI_LIBCXX_INCLUDES "${LIBCXXABI_LIBCXX_PATH}/include" CACHE PATH
- "Specify path to libc++ includes." FORCE)
+ "Specify path to libc++ includes.")
+message(STATUS "Libc++abi will be using libc++ includes from ${LIBCXXABI_LIBCXX_INCLUDES}")
option(LIBCXXABI_HERMETIC_STATIC_LIBRARY
"Do not export any symbols from the static library." OFF)
More information about the libcxx-commits
mailing list