From: Louis Dionne Date: Wed, 17 Apr 2019 19:47:27 +0000 (+0000) Subject: [libc++][CMake] Allow building neither the shared nor the static library X-Git-Tag: llvmorg-10-init~7603 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a5eae15a14677c594475cf88934a00f00da870a;p=platform%2Fupstream%2Fllvm.git [libc++][CMake] Allow building neither the shared nor the static library It's possible to build just the headers, and we actually do it. llvm-svn: 358608 --- diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt index 9658fe4..1c78e95 100644 --- a/libcxx/CMakeLists.txt +++ b/libcxx/CMakeLists.txt @@ -129,10 +129,6 @@ option(LIBCXX_USE_COMPILER_RT "Use compiler-rt instead of libgcc" OFF) set(LIBCXX_LIBCPPABI_VERSION "2" CACHE STRING "Version of libc++abi's ABI to re-export from libc++ when re-exporting is enabled. Note that this is not related to the version of libc++'s ABI itself!") -if (NOT LIBCXX_ENABLE_SHARED AND NOT LIBCXX_ENABLE_STATIC) - message(FATAL_ERROR "libc++ must be built as either a shared or static library.") -endif() - # ABI Library options --------------------------------------------------------- set(LIBCXX_CXX_ABI "default" CACHE STRING "Specify C++ ABI library to use.")