Eric Fiselier | bf9653d | 2015-03-31 04:15:45 +0000 | [diff] [blame] | 1 | set(LIBCXX_LIB_CMAKEFILES_DIR "${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}" PARENT_SCOPE) |
| 2 | |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 +0000 | [diff] [blame] | 3 | # Get sources |
Eric Fiselier | 957d7f4 | 2017-06-15 01:53:12 +0000 | [diff] [blame] | 4 | # FIXME: Don't use glob here |
Howard Hinnant | 87c61a6 | 2012-03-19 15:40:23 +0000 | [diff] [blame] | 5 | file(GLOB LIBCXX_SOURCES ../src/*.cpp) |
Howard Hinnant | 92a0700 | 2011-09-22 19:10:18 +0000 | [diff] [blame] | 6 | if(WIN32) |
Howard Hinnant | 87c61a6 | 2012-03-19 15:40:23 +0000 | [diff] [blame] | 7 | file(GLOB LIBCXX_WIN32_SOURCES ../src/support/win32/*.cpp) |
| 8 | list(APPEND LIBCXX_SOURCES ${LIBCXX_WIN32_SOURCES}) |
Eric Fiselier | 6cb69ff | 2014-11-25 21:57:41 +0000 | [diff] [blame] | 9 | elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS") |
Michal Gorny | 7c2afba | 2016-10-18 16:54:59 +0000 | [diff] [blame] | 10 | file(GLOB LIBCXX_SOLARIS_SOURCES ../src/support/solaris/*.cpp) |
Eric Fiselier | 6cb69ff | 2014-11-25 21:57:41 +0000 | [diff] [blame] | 11 | list(APPEND LIBCXX_SOURCES ${LIBCXX_SOLARIS_SOURCES}) |
Howard Hinnant | 92a0700 | 2011-09-22 19:10:18 +0000 | [diff] [blame] | 12 | endif() |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 +0000 | [diff] [blame] | 13 | |
| 14 | # Add all the headers to the project for IDEs. |
Eric Fiselier | 85df7a8 | 2015-12-16 23:41:05 +0000 | [diff] [blame] | 15 | if (LIBCXX_CONFIGURE_IDE) |
Howard Hinnant | 87c61a6 | 2012-03-19 15:40:23 +0000 | [diff] [blame] | 16 | file(GLOB_RECURSE LIBCXX_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/../include/*) |
Howard Hinnant | 92a0700 | 2011-09-22 19:10:18 +0000 | [diff] [blame] | 17 | if(WIN32) |
Howard Hinnant | 87c61a6 | 2012-03-19 15:40:23 +0000 | [diff] [blame] | 18 | file( GLOB LIBCXX_WIN32_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/../include/support/win32/*.h) |
| 19 | list(APPEND LIBCXX_HEADERS ${LIBCXX_WIN32_HEADERS}) |
Howard Hinnant | 92a0700 | 2011-09-22 19:10:18 +0000 | [diff] [blame] | 20 | endif() |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 +0000 | [diff] [blame] | 21 | # Force them all into the headers dir on MSVC, otherwise they end up at |
| 22 | # project scope because they don't have extensions. |
| 23 | if (MSVC_IDE) |
Howard Hinnant | 87c61a6 | 2012-03-19 15:40:23 +0000 | [diff] [blame] | 24 | source_group("Header Files" FILES ${LIBCXX_HEADERS}) |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 +0000 | [diff] [blame] | 25 | endif() |
| 26 | endif() |
| 27 | |
Chris Bieneman | a846b11 | 2015-12-03 18:52:54 +0000 | [diff] [blame] | 28 | if(NOT LIBCXX_INSTALL_LIBRARY) |
| 29 | set(exclude_from_all EXCLUDE_FROM_ALL) |
| 30 | endif() |
| 31 | |
Saleem Abdulrasool | 8ddd269 | 2017-01-04 05:49:55 +0000 | [diff] [blame] | 32 | # If LIBCXX_CXX_ABI_LIBRARY_PATH is defined we want to add it to the search path. |
| 33 | add_link_flags_if(LIBCXX_CXX_ABI_LIBRARY_PATH |
| 34 | "${CMAKE_LIBRARY_PATH_FLAG}${LIBCXX_CXX_ABI_LIBRARY_PATH}") |
Eric Fiselier | c0b166e | 2015-03-03 15:59:51 +0000 | [diff] [blame] | 35 | |
Eric Fiselier | c51e0d2 | 2017-03-11 03:24:18 +0000 | [diff] [blame] | 36 | |
| 37 | if (LIBCXX_GENERATE_COVERAGE AND NOT LIBCXX_COVERAGE_LIBRARY) |
| 38 | find_compiler_rt_library(profile LIBCXX_COVERAGE_LIBRARY) |
| 39 | endif() |
Eric Fiselier | eb6e2ea | 2015-07-30 22:30:34 +0000 | [diff] [blame] | 40 | add_library_flags_if(LIBCXX_COVERAGE_LIBRARY "${LIBCXX_COVERAGE_LIBRARY}") |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 +0000 | [diff] [blame] | 41 | |
Eric Fiselier | 3bf8a9c | 2016-10-09 21:34:03 +0000 | [diff] [blame] | 42 | if (APPLE AND (LIBCXX_CXX_ABI_LIBNAME STREQUAL "libcxxabi" OR |
Eric Fiselier | cfc5515 | 2017-01-03 01:18:48 +0000 | [diff] [blame] | 43 | LIBCXX_CXX_ABI_LIBNAME STREQUAL "default")) |
Eric Fiselier | 3bf8a9c | 2016-10-09 21:34:03 +0000 | [diff] [blame] | 44 | set(LIBCXX_OSX_REEXPORT_SYSTEM_ABI_LIBRARY ON) |
| 45 | endif() |
| 46 | |
Petr Hosek | 44ef94a | 2018-07-24 07:06:17 +0000 | [diff] [blame] | 47 | if (LIBCXX_STATICALLY_LINK_ABI_IN_SHARED_LIBRARY) |
Michal Gorny | ffac224 | 2016-10-08 10:27:45 +0000 | [diff] [blame] | 48 | add_library_flags("-Wl,--whole-archive" "-Wl,-Bstatic") |
| 49 | add_library_flags("${LIBCXX_CXX_ABI_LIBRARY}") |
| 50 | add_library_flags("-Wl,-Bdynamic" "-Wl,--no-whole-archive") |
Eric Fiselier | 3bf8a9c | 2016-10-09 21:34:03 +0000 | [diff] [blame] | 51 | elseif (LIBCXX_OSX_REEXPORT_SYSTEM_ABI_LIBRARY) |
Michal Gorny | ffac224 | 2016-10-08 10:27:45 +0000 | [diff] [blame] | 52 | add_library_flags("${LIBCXX_CXX_ABI_LIBRARY}") |
Eric Fiselier | 3bf8a9c | 2016-10-09 21:34:03 +0000 | [diff] [blame] | 53 | else () |
| 54 | add_interface_library("${LIBCXX_CXX_ABI_LIBRARY}") |
Michal Gorny | ffac224 | 2016-10-08 10:27:45 +0000 | [diff] [blame] | 55 | endif() |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 +0000 | [diff] [blame] | 56 | |
Eric Fiselier | 938c96e | 2015-07-22 00:33:36 +0000 | [diff] [blame] | 57 | if (APPLE AND LLVM_USE_SANITIZER) |
Kuba Brecka | 86f6997 | 2016-09-15 11:04:53 +0000 | [diff] [blame] | 58 | if (("${LLVM_USE_SANITIZER}" STREQUAL "Address") OR |
| 59 | ("${LLVM_USE_SANITIZER}" STREQUAL "Address;Undefined") OR |
| 60 | ("${LLVM_USE_SANITIZER}" STREQUAL "Undefined;Address")) |
Eric Fiselier | 938c96e | 2015-07-22 00:33:36 +0000 | [diff] [blame] | 61 | set(LIBFILE "libclang_rt.asan_osx_dynamic.dylib") |
| 62 | elseif("${LLVM_USE_SANITIZER}" STREQUAL "Undefined") |
| 63 | set(LIBFILE "libclang_rt.ubsan_osx_dynamic.dylib") |
Kuba Brecka | 847eaf4 | 2016-09-14 14:12:50 +0000 | [diff] [blame] | 64 | elseif("${LLVM_USE_SANITIZER}" STREQUAL "Thread") |
| 65 | set(LIBFILE "libclang_rt.tsan_osx_dynamic.dylib") |
Eric Fiselier | 938c96e | 2015-07-22 00:33:36 +0000 | [diff] [blame] | 66 | else() |
| 67 | message(WARNING "LLVM_USE_SANITIZER=${LLVM_USE_SANITIZER} is not supported on OS X") |
| 68 | endif() |
| 69 | if (LIBFILE) |
Eric Fiselier | c51e0d2 | 2017-03-11 03:24:18 +0000 | [diff] [blame] | 70 | find_compiler_rt_dir(LIBDIR) |
Eric Fiselier | 938c96e | 2015-07-22 00:33:36 +0000 | [diff] [blame] | 71 | if (NOT IS_DIRECTORY "${LIBDIR}") |
| 72 | message(FATAL_ERROR "Cannot find compiler-rt directory on OS X required for LLVM_USE_SANITIZER") |
| 73 | endif() |
| 74 | set(LIBCXX_SANITIZER_LIBRARY "${LIBDIR}/${LIBFILE}") |
| 75 | set(LIBCXX_SANITIZER_LIBRARY "${LIBCXX_SANITIZER_LIBRARY}" PARENT_SCOPE) |
| 76 | message(STATUS "Manually linking compiler-rt library: ${LIBCXX_SANITIZER_LIBRARY}") |
Eric Fiselier | eb6e2ea | 2015-07-30 22:30:34 +0000 | [diff] [blame] | 77 | add_library_flags("${LIBCXX_SANITIZER_LIBRARY}") |
| 78 | add_link_flags("-Wl,-rpath,${LIBDIR}") |
Eric Fiselier | 938c96e | 2015-07-22 00:33:36 +0000 | [diff] [blame] | 79 | endif() |
| 80 | endif() |
| 81 | |
Michal Gorny | ffac224 | 2016-10-08 10:27:45 +0000 | [diff] [blame] | 82 | # Generate private library list. |
Eric Fiselier | eb6e2ea | 2015-07-30 22:30:34 +0000 | [diff] [blame] | 83 | add_library_flags_if(LIBCXX_HAS_PTHREAD_LIB pthread) |
| 84 | add_library_flags_if(LIBCXX_HAS_C_LIB c) |
| 85 | add_library_flags_if(LIBCXX_HAS_M_LIB m) |
| 86 | add_library_flags_if(LIBCXX_HAS_RT_LIB rt) |
Petr Hosek | 1662a85 | 2017-04-05 22:53:05 +0000 | [diff] [blame] | 87 | if (LIBCXX_USE_COMPILER_RT) |
| 88 | find_compiler_rt_library(builtins LIBCXX_BUILTINS_LIBRARY) |
| 89 | add_library_flags_if(LIBCXX_BUILTINS_LIBRARY "${LIBCXX_BUILTINS_LIBRARY}") |
| 90 | else() |
| 91 | add_library_flags_if(LIBCXX_HAS_GCC_S_LIB gcc_s) |
| 92 | endif() |
Eric Fiselier | 5432e3b | 2016-07-18 06:01:50 +0000 | [diff] [blame] | 93 | add_library_flags_if(LIBCXX_HAVE_CXX_ATOMICS_WITH_LIB atomic) |
Martin Storsjo | ed487a3 | 2017-09-04 19:46:53 +0000 | [diff] [blame] | 94 | add_library_flags_if(MINGW "${MINGW_LIBRARIES}") |
Eric Fiselier | bf9653d | 2015-03-31 04:15:45 +0000 | [diff] [blame] | 95 | |
Michal Gorny | ffac224 | 2016-10-08 10:27:45 +0000 | [diff] [blame] | 96 | # Add the unwinder library. |
| 97 | if (LIBCXXABI_USE_LLVM_UNWINDER) |
Petr Hosek | f4699a5 | 2017-02-09 02:19:43 +0000 | [diff] [blame] | 98 | if (NOT LIBCXXABI_ENABLE_STATIC_UNWINDER AND (TARGET unwind_shared OR HAVE_LIBUNWIND)) |
Eric Fiselier | 3bf8a9c | 2016-10-09 21:34:03 +0000 | [diff] [blame] | 99 | add_interface_library(unwind_shared) |
Petr Hosek | f4699a5 | 2017-02-09 02:19:43 +0000 | [diff] [blame] | 100 | elseif (LIBCXXABI_ENABLE_STATIC_UNWINDER AND (TARGET unwind_static OR HAVE_LIBUNWIND)) |
Eric Fiselier | 3bf8a9c | 2016-10-09 21:34:03 +0000 | [diff] [blame] | 101 | add_interface_library(unwind_static) |
| 102 | else() |
| 103 | add_interface_library(unwind) |
| 104 | endif() |
Michal Gorny | ffac224 | 2016-10-08 10:27:45 +0000 | [diff] [blame] | 105 | endif() |
| 106 | |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 +0000 | [diff] [blame] | 107 | # Setup flags. |
Saleem Abdulrasool | 1dbcfe0 | 2016-09-01 20:49:54 +0000 | [diff] [blame] | 108 | if (NOT WIN32) |
| 109 | add_flags_if_supported(-fPIC) |
| 110 | endif() |
Eric Fiselier | 157fd34 | 2017-01-14 07:54:39 +0000 | [diff] [blame] | 111 | |
Eric Fiselier | eb6e2ea | 2015-07-30 22:30:34 +0000 | [diff] [blame] | 112 | add_link_flags_if_supported(-nodefaultlibs) |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 +0000 | [diff] [blame] | 113 | |
Eric Fiselier | fdd3c91 | 2017-01-14 06:06:47 +0000 | [diff] [blame] | 114 | if (LIBCXX_TARGETING_MSVC) |
Eric Fiselier | 157fd34 | 2017-01-14 07:54:39 +0000 | [diff] [blame] | 115 | if (LIBCXX_DEBUG_BUILD) |
| 116 | set(LIB_SUFFIX "d") |
| 117 | else() |
| 118 | set(LIB_SUFFIX "") |
| 119 | endif() |
Eric Fiselier | fdd3c91 | 2017-01-14 06:06:47 +0000 | [diff] [blame] | 120 | add_compile_flags(/Zl) |
| 121 | add_link_flags(/nodefaultlib) |
Eric Fiselier | 157fd34 | 2017-01-14 07:54:39 +0000 | [diff] [blame] | 122 | |
| 123 | add_library_flags(ucrt${LIB_SUFFIX}) # Universal C runtime |
| 124 | add_library_flags(vcruntime${LIB_SUFFIX}) # C++ runtime |
| 125 | add_library_flags(msvcrt${LIB_SUFFIX}) # C runtime startup files |
Eric Fiselier | 78f5dc0 | 2017-05-08 01:17:50 +0000 | [diff] [blame] | 126 | add_library_flags(msvcprt${LIB_SUFFIX}) # C++ standard library. Required for exception_ptr internals. |
Eric Fiselier | fdd3c91 | 2017-01-14 06:06:47 +0000 | [diff] [blame] | 127 | # Required for standards-complaint wide character formatting functions |
| 128 | # (e.g. `printfw`/`scanfw`) |
| 129 | add_library_flags(iso_stdio_wide_specifiers) |
| 130 | endif() |
| 131 | |
Eric Fiselier | 3bf8a9c | 2016-10-09 21:34:03 +0000 | [diff] [blame] | 132 | if (LIBCXX_OSX_REEXPORT_SYSTEM_ABI_LIBRARY) |
Eric Fiselier | 45969ec | 2015-02-21 02:26:24 +0000 | [diff] [blame] | 133 | if (NOT DEFINED LIBCXX_LIBCPPABI_VERSION) |
Eric Fiselier | 5fb49ff | 2016-06-14 21:55:14 +0000 | [diff] [blame] | 134 | set(LIBCXX_LIBCPPABI_VERSION "2") # Default value |
| 135 | execute_process( |
| 136 | COMMAND xcrun --show-sdk-version |
| 137 | OUTPUT_VARIABLE sdk_ver |
| 138 | RESULT_VARIABLE res |
| 139 | OUTPUT_STRIP_TRAILING_WHITESPACE) |
| 140 | if (res EQUAL 0) |
| 141 | message(STATUS "Found SDK version ${sdk_ver}") |
| 142 | string(REPLACE "10." "" sdk_ver "${sdk_ver}") |
| 143 | if (sdk_ver LESS 9) |
| 144 | set(LIBCXX_LIBCPPABI_VERSION "") |
| 145 | else() |
| 146 | set(LIBCXX_LIBCPPABI_VERSION "2") |
| 147 | endif() |
| 148 | endif() |
Eric Fiselier | 45969ec | 2015-02-21 02:26:24 +0000 | [diff] [blame] | 149 | endif() |
| 150 | |
Michael Gottesman | 8a1fc89 | 2013-09-02 07:28:03 +0000 | [diff] [blame] | 151 | if ( CMAKE_OSX_DEPLOYMENT_TARGET STREQUAL "10.6" ) |
Eric Fiselier | eb6e2ea | 2015-07-30 22:30:34 +0000 | [diff] [blame] | 152 | add_definitions(-D__STRICT_ANSI__) |
| 153 | add_link_flags( |
Michael Gottesman | 8a1fc89 | 2013-09-02 07:28:03 +0000 | [diff] [blame] | 154 | "-compatibility_version 1" |
Hans Wennborg | f3b5f0e | 2014-08-12 17:32:07 +0000 | [diff] [blame] | 155 | "-current_version 1" |
Michael Gottesman | 8a1fc89 | 2013-09-02 07:28:03 +0000 | [diff] [blame] | 156 | "-install_name /usr/lib/libc++.1.dylib" |
| 157 | "-Wl,-reexport_library,/usr/lib/libc++abi.dylib" |
| 158 | "-Wl,-unexported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR}/libc++unexp.exp" |
| 159 | "/usr/lib/libSystem.B.dylib") |
| 160 | else() |
Eric Fiselier | 9ea4041 | 2017-04-15 05:41:45 +0000 | [diff] [blame] | 161 | if (DEFINED CMAKE_OSX_SYSROOT AND NOT CMAKE_OSX_SYSROOT STREQUAL "") |
Eric Fiselier | b16966c | 2016-08-30 01:10:33 +0000 | [diff] [blame] | 162 | list(FIND CMAKE_OSX_ARCHITECTURES "armv7" OSX_HAS_ARMV7) |
Eric Fiselier | 364cf87 | 2016-08-30 00:54:37 +0000 | [diff] [blame] | 163 | if (NOT OSX_HAS_ARMV7 EQUAL -1) |
Michael Gottesman | 8a1fc89 | 2013-09-02 07:28:03 +0000 | [diff] [blame] | 164 | set(OSX_RE_EXPORT_LINE |
| 165 | "${CMAKE_OSX_SYSROOT}/usr/lib/libc++abi.dylib" |
| 166 | "-Wl,-reexported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR}/libc++sjlj-abi.exp") |
| 167 | else() |
| 168 | set(OSX_RE_EXPORT_LINE |
| 169 | "-Wl,-reexport_library,${CMAKE_OSX_SYSROOT}/usr/lib/libc++abi.dylib") |
| 170 | endif() |
| 171 | else() |
Eric Fiselier | 25daee7 | 2015-10-05 19:28:48 +0000 | [diff] [blame] | 172 | set(OSX_RE_EXPORT_LINE "/usr/lib/libc++abi.dylib -Wl,-reexported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR}/libc++abi${LIBCXX_LIBCPPABI_VERSION}.exp") |
Eric Fiselier | 9ea4041 | 2017-04-15 05:41:45 +0000 | [diff] [blame] | 173 | if (NOT LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS) |
| 174 | add_link_flags("/usr/lib/libc++abi.dylib -Wl,-reexported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR}/libc++abi-new-delete.exp") |
| 175 | endif() |
Michael Gottesman | 8a1fc89 | 2013-09-02 07:28:03 +0000 | [diff] [blame] | 176 | endif() |
Eric Fiselier | eb6e2ea | 2015-07-30 22:30:34 +0000 | [diff] [blame] | 177 | add_link_flags( |
Michael Gottesman | 8a1fc89 | 2013-09-02 07:28:03 +0000 | [diff] [blame] | 178 | "-compatibility_version 1" |
| 179 | "-install_name /usr/lib/libc++.1.dylib" |
| 180 | "-Wl,-unexported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR}/libc++unexp.exp" |
| 181 | "${OSX_RE_EXPORT_LINE}" |
| 182 | "-Wl,-force_symbols_not_weak_list,${CMAKE_CURRENT_SOURCE_DIR}/notweak.exp" |
| 183 | "-Wl,-force_symbols_weak_list,${CMAKE_CURRENT_SOURCE_DIR}/weak.exp") |
| 184 | endif() |
| 185 | endif() |
| 186 | |
Eric Fiselier | eb6e2ea | 2015-07-30 22:30:34 +0000 | [diff] [blame] | 187 | split_list(LIBCXX_COMPILE_FLAGS) |
| 188 | split_list(LIBCXX_LINK_FLAGS) |
Michael Gottesman | 8a1fc89 | 2013-09-02 07:28:03 +0000 | [diff] [blame] | 189 | |
Shoaib Meenai | f012f26 | 2017-03-28 19:33:31 +0000 | [diff] [blame] | 190 | # Add an object library that contains the compiled source files. |
Petr Hosek | b640da0 | 2016-08-08 22:57:25 +0000 | [diff] [blame] | 191 | add_library(cxx_objects OBJECT ${exclude_from_all} ${LIBCXX_SOURCES} ${LIBCXX_HEADERS}) |
Petr Hosek | 204d5ec | 2018-06-12 06:58:06 +0000 | [diff] [blame] | 192 | if(LIBCXX_CXX_ABI_HEADER_TARGET) |
| 193 | add_dependencies(cxx_objects ${LIBCXX_CXX_ABI_HEADER_TARGET}) |
Petr Hosek | f48515b | 2018-06-12 03:10:02 +0000 | [diff] [blame] | 194 | endif() |
Saleem Abdulrasool | 766e557 | 2017-01-02 21:40:17 +0000 | [diff] [blame] | 195 | if(WIN32 AND NOT MINGW) |
| 196 | target_compile_definitions(cxx_objects |
| 197 | PRIVATE |
| 198 | # Ignore the -MSC_VER mismatch, as we may build |
| 199 | # with a different compatibility version. |
| 200 | _ALLOW_MSC_VER_MISMATCH |
| 201 | # Don't check the msvcprt iterator debug levels |
| 202 | # as we will define the iterator types; libc++ |
| 203 | # uses a different macro to identify the debug |
| 204 | # level. |
| 205 | _ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH |
| 206 | # We are building the c++ runtime, don't pull in |
| 207 | # msvcprt. |
| 208 | _CRTBLD |
| 209 | # Don't warn on the use of "deprecated" |
| 210 | # "insecure" functions which are standards |
| 211 | # specified. |
| 212 | _CRT_SECURE_NO_WARNINGS |
| 213 | # Use the ISO conforming behaviour for conversion |
| 214 | # in printf, scanf. |
| 215 | _CRT_STDIO_ISO_WIDE_SPECIFIERS) |
| 216 | endif() |
Petr Hosek | b640da0 | 2016-08-08 22:57:25 +0000 | [diff] [blame] | 217 | |
| 218 | set_target_properties(cxx_objects |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 +0000 | [diff] [blame] | 219 | PROPERTIES |
Eric Fiselier | 8e2855c | 2014-11-15 06:26:30 +0000 | [diff] [blame] | 220 | COMPILE_FLAGS "${LIBCXX_COMPILE_FLAGS}" |
Petr Hosek | b640da0 | 2016-08-08 22:57:25 +0000 | [diff] [blame] | 221 | ) |
| 222 | |
Petr Hosek | b640da0 | 2016-08-08 22:57:25 +0000 | [diff] [blame] | 223 | # Build the shared library. |
| 224 | if (LIBCXX_ENABLE_SHARED) |
| 225 | add_library(cxx_shared SHARED $<TARGET_OBJECTS:cxx_objects>) |
Don Hinton | 1dfee5b | 2018-01-27 18:55:30 +0000 | [diff] [blame] | 226 | if(COMMAND llvm_setup_rpath) |
Don Hinton | 44aacb7 | 2018-01-26 01:34:51 +0000 | [diff] [blame] | 227 | llvm_setup_rpath(cxx_shared) |
| 228 | endif() |
Eric Fiselier | 3bf8a9c | 2016-10-09 21:34:03 +0000 | [diff] [blame] | 229 | target_link_libraries(cxx_shared ${LIBCXX_LIBRARIES}) |
Petr Hosek | b640da0 | 2016-08-08 22:57:25 +0000 | [diff] [blame] | 230 | set_target_properties(cxx_shared |
| 231 | PROPERTIES |
| 232 | LINK_FLAGS "${LIBCXX_LINK_FLAGS}" |
| 233 | OUTPUT_NAME "c++" |
| 234 | VERSION "${LIBCXX_ABI_VERSION}.0" |
| 235 | SOVERSION "${LIBCXX_ABI_VERSION}" |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 +0000 | [diff] [blame] | 236 | ) |
Petr Hosek | 89d973a | 2018-07-24 23:27:51 +0000 | [diff] [blame] | 237 | list(APPEND LIBCXX_BUILD_TARGETS "cxx_shared") |
| 238 | if (LIBCXX_INSTALL_SHARED_LIBRARY) |
| 239 | list(APPEND LIBCXX_INSTALL_TARGETS "cxx_shared") |
| 240 | endif() |
Saleem Abdulrasool | 1b34b98 | 2017-01-02 21:09:19 +0000 | [diff] [blame] | 241 | if(WIN32 AND NOT MINGW AND NOT "${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Windows") |
| 242 | # Since we most likely do not have a mt.exe replacement, disable the |
| 243 | # manifest bundling. This allows a normal cmake invocation to pass which |
| 244 | # will attempt to use the manifest tool to generate the bundled manifest |
| 245 | set_target_properties(cxx_shared PROPERTIES |
| 246 | APPEND_STRING PROPERTY LINK_FLAGS " /MANIFEST:NO") |
| 247 | endif() |
Petr Hosek | b640da0 | 2016-08-08 22:57:25 +0000 | [diff] [blame] | 248 | endif() |
| 249 | |
| 250 | # Build the static library. |
| 251 | if (LIBCXX_ENABLE_STATIC) |
| 252 | add_library(cxx_static STATIC $<TARGET_OBJECTS:cxx_objects>) |
Eric Fiselier | 3bf8a9c | 2016-10-09 21:34:03 +0000 | [diff] [blame] | 253 | target_link_libraries(cxx_static ${LIBCXX_LIBRARIES}) |
Martell Malone | fa3bd28 | 2017-05-25 22:37:15 +0000 | [diff] [blame] | 254 | set(CMAKE_STATIC_LIBRARY_PREFIX "lib") |
Petr Hosek | b640da0 | 2016-08-08 22:57:25 +0000 | [diff] [blame] | 255 | set_target_properties(cxx_static |
| 256 | PROPERTIES |
| 257 | LINK_FLAGS "${LIBCXX_LINK_FLAGS}" |
Martell Malone | fa3bd28 | 2017-05-25 22:37:15 +0000 | [diff] [blame] | 258 | OUTPUT_NAME "c++" |
Petr Hosek | b640da0 | 2016-08-08 22:57:25 +0000 | [diff] [blame] | 259 | ) |
Petr Hosek | 89d973a | 2018-07-24 23:27:51 +0000 | [diff] [blame] | 260 | list(APPEND LIBCXX_BUILD_TARGETS "cxx_static") |
| 261 | if (LIBCXX_INSTALL_STATIC_LIBRARY) |
| 262 | list(APPEND LIBCXX_INSTALL_TARGETS "cxx_static") |
| 263 | endif() |
Eric Fiselier | 60479ea | 2016-11-18 19:53:45 +0000 | [diff] [blame] | 264 | # Attempt to merge the libc++.a archive and the ABI library archive into one. |
Petr Hosek | 44ef94a | 2018-07-24 07:06:17 +0000 | [diff] [blame] | 265 | if (LIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY) |
Eric Fiselier | 60479ea | 2016-11-18 19:53:45 +0000 | [diff] [blame] | 266 | set(MERGE_ARCHIVES_SEARCH_PATHS "") |
| 267 | if (LIBCXX_CXX_ABI_LIBRARY_PATH) |
| 268 | set(MERGE_ARCHIVES_SEARCH_PATHS "-L${LIBCXX_CXX_ABI_LIBRARY_PATH}") |
| 269 | endif() |
Petr Hosek | c59c317 | 2017-01-16 00:33:09 +0000 | [diff] [blame] | 270 | if ((TARGET ${LIBCXX_CXX_ABI_LIBRARY}) OR |
Leo Li | 158fe10 | 2017-07-18 19:48:02 +0000 | [diff] [blame] | 271 | (${LIBCXX_CXX_ABI_LIBRARY} MATCHES "cxxabi(_static|_shared)?" AND HAVE_LIBCXXABI)) |
Petr Hosek | 44ef94a | 2018-07-24 07:06:17 +0000 | [diff] [blame] | 272 | set(MERGE_ARCHIVES_ABI_TARGET "$<TARGET_LINKER_FILE:cxxabi_static>") |
Eric Fiselier | 60479ea | 2016-11-18 19:53:45 +0000 | [diff] [blame] | 273 | else() |
Saleem Abdulrasool | 1f2d778 | 2017-01-04 05:49:57 +0000 | [diff] [blame] | 274 | set(MERGE_ARCHIVES_ABI_TARGET |
| 275 | "${CMAKE_STATIC_LIBRARY_PREFIX}${LIBCXX_CXX_ABI_LIBRARY}${CMAKE_STATIC_LIBRARY_SUFFIX}") |
Eric Fiselier | 60479ea | 2016-11-18 19:53:45 +0000 | [diff] [blame] | 276 | endif() |
| 277 | add_custom_command(TARGET cxx_static POST_BUILD |
| 278 | COMMAND |
| 279 | ${PYTHON_EXECUTABLE} ${LIBCXX_SOURCE_DIR}/utils/merge_archives.py |
| 280 | ARGS |
| 281 | -o $<TARGET_LINKER_FILE:cxx_static> |
Martin Storsjo | 5f919fe | 2017-09-13 06:55:44 +0000 | [diff] [blame] | 282 | --ar "${CMAKE_AR}" |
Eric Fiselier | 60479ea | 2016-11-18 19:53:45 +0000 | [diff] [blame] | 283 | "$<TARGET_LINKER_FILE:cxx_static>" |
| 284 | "${MERGE_ARCHIVES_ABI_TARGET}" |
| 285 | "${MERGE_ARCHIVES_SEARCH_PATHS}" |
| 286 | WORKING_DIRECTORY ${LIBCXX_BUILD_DIR} |
| 287 | ) |
| 288 | endif() |
Petr Hosek | b640da0 | 2016-08-08 22:57:25 +0000 | [diff] [blame] | 289 | endif() |
| 290 | |
| 291 | # Add a meta-target for both libraries. |
Petr Hosek | 89d973a | 2018-07-24 23:27:51 +0000 | [diff] [blame] | 292 | add_custom_target(cxx DEPENDS cxx-headers ${LIBCXX_BUILD_TARGETS}) |
Petr Hosek | b640da0 | 2016-08-08 22:57:25 +0000 | [diff] [blame] | 293 | |
Eric Fiselier | a0866c5 | 2018-07-27 03:07:09 +0000 | [diff] [blame^] | 294 | |
| 295 | if (LIBCXX_ENABLE_FILESYSTEM) |
| 296 | set(LIBCXX_FILESYSTEM_SOURCES |
| 297 | ../src/filesystem/operations.cpp |
| 298 | ../src/filesystem/directory_iterator.cpp) |
| 299 | |
| 300 | # Filesystem uses __int128_t, which requires a definition of __muloi4 when |
| 301 | # compiled with UBSAN. This definition is not provided by libgcc_s, but is |
| 302 | # provided by compiler-rt. So we need to disable it to avoid having multiple |
| 303 | # definitions. See filesystem/int128_builtins.cpp. |
| 304 | if (NOT LIBCXX_USE_COMPILER_RT) |
| 305 | list(APPEND LIBCXX_FILESYSTEM_SOURCES ../src/filesystem/int128_builtins.cpp) |
| 306 | endif() |
| 307 | |
| 308 | add_library(cxx_filesystem STATIC ${LIBCXX_FILESYSTEM_SOURCES}) |
| 309 | if (LIBCXX_ENABLE_SHARED) |
| 310 | target_link_libraries(cxx_filesystem cxx_shared) |
| 311 | else() |
| 312 | target_link_libraries(cxx_filesystem cxx_static) |
| 313 | endif() |
| 314 | |
| 315 | set(filesystem_flags "${LIBCXX_COMPILE_FLAGS}") |
| 316 | check_flag_supported(-std=c++14) |
| 317 | if (NOT MSVC AND LIBCXX_SUPPORTS_STD_EQ_CXX14_FLAG) |
| 318 | string(REPLACE "-std=c++11" "-std=c++14" filesystem_flags "${LIBCXX_COMPILE_FLAGS}") |
| 319 | endif() |
| 320 | set_target_properties(cxx_filesystem |
| 321 | PROPERTIES |
| 322 | COMPILE_FLAGS "${filesystem_flags}" |
| 323 | OUTPUT_NAME "c++fs" |
| 324 | ) |
| 325 | endif() |
| 326 | |
| 327 | |
Eric Fiselier | 5e4698c | 2016-05-03 21:30:18 +0000 | [diff] [blame] | 328 | if (LIBCXX_ENABLE_EXPERIMENTAL_LIBRARY) |
| 329 | file(GLOB LIBCXX_EXPERIMENTAL_SOURCES ../src/experimental/*.cpp) |
Eric Fiselier | a0866c5 | 2018-07-27 03:07:09 +0000 | [diff] [blame^] | 330 | add_library(cxx_experimental STATIC ${LIBCXX_EXPERIMENTAL_SOURCES}) |
Petr Hosek | b640da0 | 2016-08-08 22:57:25 +0000 | [diff] [blame] | 331 | if (LIBCXX_ENABLE_SHARED) |
| 332 | target_link_libraries(cxx_experimental cxx_shared) |
| 333 | else() |
| 334 | target_link_libraries(cxx_experimental cxx_static) |
| 335 | endif() |
Eric Fiselier | 25bcc0f | 2016-05-10 16:17:43 +0000 | [diff] [blame] | 336 | |
| 337 | set(experimental_flags "${LIBCXX_COMPILE_FLAGS}") |
| 338 | check_flag_supported(-std=c++14) |
| 339 | if (NOT MSVC AND LIBCXX_SUPPORTS_STD_EQ_CXX14_FLAG) |
| 340 | string(REPLACE "-std=c++11" "-std=c++14" experimental_flags "${LIBCXX_COMPILE_FLAGS}") |
| 341 | endif() |
Eric Fiselier | 5e4698c | 2016-05-03 21:30:18 +0000 | [diff] [blame] | 342 | set_target_properties(cxx_experimental |
| 343 | PROPERTIES |
Eric Fiselier | 25bcc0f | 2016-05-10 16:17:43 +0000 | [diff] [blame] | 344 | COMPILE_FLAGS "${experimental_flags}" |
Eric Fiselier | 5e4698c | 2016-05-03 21:30:18 +0000 | [diff] [blame] | 345 | OUTPUT_NAME "c++experimental" |
| 346 | ) |
| 347 | endif() |
| 348 | |
Eric Fiselier | a0866c5 | 2018-07-27 03:07:09 +0000 | [diff] [blame^] | 349 | |
Eric Fiselier | 66134e8 | 2017-01-06 20:05:40 +0000 | [diff] [blame] | 350 | if (LIBCXX_BUILD_EXTERNAL_THREAD_LIBRARY) |
Asiri Rathnayake | 040945b | 2016-09-11 21:46:40 +0000 | [diff] [blame] | 351 | file(GLOB LIBCXX_EXTERNAL_THREADING_SUPPORT_SOURCES ../test/support/external_threads.cpp) |
| 352 | |
| 353 | if (LIBCXX_ENABLE_SHARED) |
| 354 | add_library(cxx_external_threads SHARED ${LIBCXX_EXTERNAL_THREADING_SUPPORT_SOURCES}) |
| 355 | else() |
| 356 | add_library(cxx_external_threads STATIC ${LIBCXX_EXTERNAL_THREADING_SUPPORT_SOURCES}) |
| 357 | endif() |
| 358 | |
| 359 | set_target_properties(cxx_external_threads |
| 360 | PROPERTIES |
| 361 | LINK_FLAGS "${LIBCXX_LINK_FLAGS}" |
| 362 | COMPILE_FLAGS "${LIBCXX_COMPILE_FLAGS}" |
| 363 | OUTPUT_NAME "c++external_threads" |
| 364 | ) |
| 365 | endif() |
| 366 | |
Eric Fiselier | 8cbf020 | 2015-10-14 19:54:03 +0000 | [diff] [blame] | 367 | # Generate a linker script inplace of a libc++.so symlink. Rerun this command |
| 368 | # after cxx builds. |
Petr Hosek | b640da0 | 2016-08-08 22:57:25 +0000 | [diff] [blame] | 369 | if (LIBCXX_ENABLE_SHARED AND LIBCXX_ENABLE_ABI_LINKER_SCRIPT) |
Eric Fiselier | 8cbf020 | 2015-10-14 19:54:03 +0000 | [diff] [blame] | 370 | # Get the name of the ABI library and handle the case where CXXABI_LIBNAME |
| 371 | # is a target name and not a library. Ex cxxabi_shared. |
Eric Fiselier | 3bf8a9c | 2016-10-09 21:34:03 +0000 | [diff] [blame] | 372 | set(LIBCXX_INTERFACE_LIBRARY_NAMES) |
| 373 | foreach(lib ${LIBCXX_INTERFACE_LIBRARIES}) |
| 374 | # FIXME: Handle cxxabi_static and unwind_static. |
Petr Hosek | c59c317 | 2017-01-16 00:33:09 +0000 | [diff] [blame] | 375 | if (TARGET ${lib} OR |
| 376 | (${lib} MATCHES "cxxabi(_static|_shared)?" AND HAVE_LIBCXXABI) OR |
| 377 | (${lib} MATCHES "unwind(_static|_shared)?" AND HAVE_LIBUNWIND)) |
Eric Fiselier | 3bf8a9c | 2016-10-09 21:34:03 +0000 | [diff] [blame] | 378 | list(APPEND LIBCXX_INTERFACE_LIBRARY_NAMES "$<TARGET_PROPERTY:${lib},OUTPUT_NAME>") |
Hal Finkel | 475cf02 | 2016-10-09 02:49:31 +0000 | [diff] [blame] | 379 | else() |
Eric Fiselier | 3bf8a9c | 2016-10-09 21:34:03 +0000 | [diff] [blame] | 380 | list(APPEND LIBCXX_INTERFACE_LIBRARY_NAMES "${lib}") |
Hal Finkel | 475cf02 | 2016-10-09 02:49:31 +0000 | [diff] [blame] | 381 | endif() |
| 382 | endforeach() |
Eric Fiselier | 3bf8a9c | 2016-10-09 21:34:03 +0000 | [diff] [blame] | 383 | #split_list(LIBCXX_INTERFACE_LIBRARY_NAMES) |
Eric Fiselier | 8cbf020 | 2015-10-14 19:54:03 +0000 | [diff] [blame] | 384 | # Generate a linker script inplace of a libc++.so symlink. Rerun this command |
| 385 | # after cxx builds. |
Petr Hosek | b640da0 | 2016-08-08 22:57:25 +0000 | [diff] [blame] | 386 | add_custom_command(TARGET cxx_shared POST_BUILD |
Eric Fiselier | 8cbf020 | 2015-10-14 19:54:03 +0000 | [diff] [blame] | 387 | COMMAND |
Eric Fiselier | 1147753 | 2017-02-09 22:53:14 +0000 | [diff] [blame] | 388 | ${PYTHON_EXECUTABLE} ${LIBCXX_SOURCE_DIR}/utils/gen_link_script.py |
Eric Fiselier | 8cbf020 | 2015-10-14 19:54:03 +0000 | [diff] [blame] | 389 | ARGS |
Petr Hosek | b640da0 | 2016-08-08 22:57:25 +0000 | [diff] [blame] | 390 | "$<TARGET_LINKER_FILE:cxx_shared>" |
Eric Fiselier | 3bf8a9c | 2016-10-09 21:34:03 +0000 | [diff] [blame] | 391 | ${LIBCXX_INTERFACE_LIBRARY_NAMES} |
Eric Fiselier | 8cbf020 | 2015-10-14 19:54:03 +0000 | [diff] [blame] | 392 | WORKING_DIRECTORY ${LIBCXX_BUILD_DIR} |
| 393 | ) |
| 394 | endif() |
| 395 | |
Eric Fiselier | 961269d | 2015-08-26 20:18:21 +0000 | [diff] [blame] | 396 | if (LIBCXX_INSTALL_LIBRARY) |
Eric Fiselier | a0866c5 | 2018-07-27 03:07:09 +0000 | [diff] [blame^] | 397 | if (LIBCXX_INSTALL_FILESYSTEM_LIBRARY) |
| 398 | set(filesystem_lib cxx_filesystem) |
| 399 | endif() |
Eric Fiselier | 5e4698c | 2016-05-03 21:30:18 +0000 | [diff] [blame] | 400 | if (LIBCXX_INSTALL_EXPERIMENTAL_LIBRARY) |
| 401 | set(experimental_lib cxx_experimental) |
| 402 | endif() |
Eric Fiselier | a0866c5 | 2018-07-27 03:07:09 +0000 | [diff] [blame^] | 403 | install(TARGETS ${LIBCXX_INSTALL_TARGETS} ${filesystem_lib} ${experimental_lib} |
Petr Hosek | 347be61 | 2017-07-11 02:39:50 +0000 | [diff] [blame] | 404 | LIBRARY DESTINATION ${LIBCXX_INSTALL_PREFIX}lib${LIBCXX_LIBDIR_SUFFIX} COMPONENT cxx |
| 405 | ARCHIVE DESTINATION ${LIBCXX_INSTALL_PREFIX}lib${LIBCXX_LIBDIR_SUFFIX} COMPONENT cxx |
Eric Fiselier | 961269d | 2015-08-26 20:18:21 +0000 | [diff] [blame] | 406 | ) |
Eric Fiselier | 8cbf020 | 2015-10-14 19:54:03 +0000 | [diff] [blame] | 407 | # NOTE: This install command must go after the cxx install command otherwise |
| 408 | # it will not be executed after the library symlinks are installed. |
Petr Hosek | b640da0 | 2016-08-08 22:57:25 +0000 | [diff] [blame] | 409 | if (LIBCXX_ENABLE_SHARED AND LIBCXX_ENABLE_ABI_LINKER_SCRIPT) |
Eric Fiselier | 601d2c1 | 2015-10-22 21:24:01 +0000 | [diff] [blame] | 410 | # Replace the libc++ filename with $<TARGET_LINKER_FILE:cxx> |
| 411 | # after we required CMake 3.0. |
Eric Fiselier | e6d05b6 | 2015-10-23 07:04:24 +0000 | [diff] [blame] | 412 | install(FILES "${LIBCXX_LIBRARY_DIR}/libc++${CMAKE_SHARED_LIBRARY_SUFFIX}" |
Petr Hosek | 347be61 | 2017-07-11 02:39:50 +0000 | [diff] [blame] | 413 | DESTINATION ${LIBCXX_INSTALL_PREFIX}lib${LIBCXX_LIBDIR_SUFFIX} |
Eric Fiselier | 8cbf020 | 2015-10-14 19:54:03 +0000 | [diff] [blame] | 414 | COMPONENT libcxx) |
| 415 | endif() |
Eric Fiselier | 961269d | 2015-08-26 20:18:21 +0000 | [diff] [blame] | 416 | endif() |
Eric Fiselier | de56f74 | 2015-08-19 17:41:53 +0000 | [diff] [blame] | 417 | |
Eric Fiselier | 961269d | 2015-08-26 20:18:21 +0000 | [diff] [blame] | 418 | if (NOT CMAKE_CONFIGURATION_TYPES AND (LIBCXX_INSTALL_LIBRARY OR |
| 419 | LIBCXX_INSTALL_HEADERS)) |
Chris Bieneman | a846b11 | 2015-12-03 18:52:54 +0000 | [diff] [blame] | 420 | if(LIBCXX_INSTALL_LIBRARY) |
Eric Fiselier | a956a10 | 2016-05-03 05:34:38 +0000 | [diff] [blame] | 421 | set(lib_install_target cxx) |
Chris Bieneman | a846b11 | 2015-12-03 18:52:54 +0000 | [diff] [blame] | 422 | endif() |
Eric Fiselier | a0866c5 | 2018-07-27 03:07:09 +0000 | [diff] [blame^] | 423 | if (LIBCXX_INSTALL_FILESYSTEM_LIBRARY) |
| 424 | set(filesystem_lib_install_target cxx_filesystem) |
| 425 | endif() |
Eric Fiselier | 5e4698c | 2016-05-03 21:30:18 +0000 | [diff] [blame] | 426 | if (LIBCXX_INSTALL_EXPERIMENTAL_LIBRARY) |
| 427 | set(experimental_lib_install_target cxx_experimental) |
| 428 | endif() |
Chris Bieneman | ffa3db2 | 2016-04-29 22:17:15 +0000 | [diff] [blame] | 429 | if(LIBCXX_INSTALL_HEADERS) |
Chris Bieneman | e0620e2 | 2016-08-24 22:17:06 +0000 | [diff] [blame] | 430 | set(header_install_target install-cxx-headers) |
Chris Bieneman | ffa3db2 | 2016-04-29 22:17:15 +0000 | [diff] [blame] | 431 | endif() |
Chris Bieneman | e0620e2 | 2016-08-24 22:17:06 +0000 | [diff] [blame] | 432 | add_custom_target(install-cxx |
Eric Fiselier | 5e4698c | 2016-05-03 21:30:18 +0000 | [diff] [blame] | 433 | DEPENDS ${lib_install_target} |
| 434 | ${experimental_lib_install_target} |
Eric Fiselier | a0866c5 | 2018-07-27 03:07:09 +0000 | [diff] [blame^] | 435 | ${filesystem_lib_install_target} |
Eric Fiselier | 5e4698c | 2016-05-03 21:30:18 +0000 | [diff] [blame] | 436 | ${header_install_target} |
Eric Fiselier | 961269d | 2015-08-26 20:18:21 +0000 | [diff] [blame] | 437 | COMMAND "${CMAKE_COMMAND}" |
Chris Bieneman | e0620e2 | 2016-08-24 22:17:06 +0000 | [diff] [blame] | 438 | -DCMAKE_INSTALL_COMPONENT=cxx |
Eric Fiselier | 961269d | 2015-08-26 20:18:21 +0000 | [diff] [blame] | 439 | -P "${LIBCXX_BINARY_DIR}/cmake_install.cmake") |
Shoaib Meenai | cd9466e | 2017-12-06 21:03:42 +0000 | [diff] [blame] | 440 | add_custom_target(install-cxx-stripped |
| 441 | DEPENDS ${lib_install_target} |
| 442 | ${experimental_lib_install_target} |
Eric Fiselier | a0866c5 | 2018-07-27 03:07:09 +0000 | [diff] [blame^] | 443 | ${filesystem_lib_install_target} |
Shoaib Meenai | cd9466e | 2017-12-06 21:03:42 +0000 | [diff] [blame] | 444 | ${header_install_target} |
| 445 | COMMAND "${CMAKE_COMMAND}" |
| 446 | -DCMAKE_INSTALL_COMPONENT=cxx |
| 447 | -DCMAKE_INSTALL_DO_STRIP=1 |
| 448 | -P "${LIBCXX_BINARY_DIR}/cmake_install.cmake") |
Chris Bieneman | e0620e2 | 2016-08-24 22:17:06 +0000 | [diff] [blame] | 449 | add_custom_target(install-libcxx DEPENDS install-cxx) |
Eric Fiselier | de56f74 | 2015-08-19 17:41:53 +0000 | [diff] [blame] | 450 | endif() |