Saleem Abdulrasool: Ensure that __GLIBCXX__ is defined when building with libsupc++.

llvm-svn: 173164
This commit is contained in:
Howard Hinnant 2013-01-22 14:44:06 +00:00
parent 44ee2e7a23
commit 2ac1ae6150
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ get_target_triple(LIBCXX_TARGET_TRIPLE
set(LIBCXX_TARGET_TRIPLE ${LIBCXX_TARGET_TRIPLE} CACHE STRING "Target triple.")
if ("${LIBCXX_CXX_ABI}" STREQUAL "libsupc++")
add_definitions(-D__GLIBCXX__)
set(LIBCXX_LIBSUPCXX_INCLUDE_PATHS "${LIBCXX_LIBSUPCXX_INCLUDE_PATHS}"
CACHE STRINGS
"Paths to libsupc++ include directories separate by ';'.")