Get libc++abi building with LLVM_ENABLE_MODULES
llvm-svn: 285107
This commit is contained in:
parent
7696dc0685
commit
f6c4ab901b
|
@ -95,6 +95,12 @@ string(REPLACE ";" " " LIBCXXABI_COMPILE_FLAGS "${LIBCXXABI_COMPILE_FLAGS}")
|
|||
string(REPLACE ";" " " LIBCXXABI_LINK_FLAGS "${LIBCXXABI_LINK_FLAGS}")
|
||||
string(REPLACE ";" " " LIBCXXABI_SHARED_LINK_FLAGS "${LIBCXXABI_SHARED_LINK_FLAGS}")
|
||||
|
||||
# FIXME: libc++abi.so will not link when modules are enabled because it depends
|
||||
# on symbols defined in libc++.so which has not yet been built.
|
||||
if (LLVM_ENABLE_MODULES)
|
||||
string(REPLACE "-Wl,-z,defs" "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
|
||||
endif()
|
||||
|
||||
# Add a object library that contains the compiled source files.
|
||||
add_library(cxxabi_objects OBJECT ${LIBCXXABI_SOURCES} ${LIBCXXABI_HEADERS})
|
||||
|
||||
|
|
Loading…
Reference in New Issue