From 2ac1ae6150c006295cd96ea27afd7ff4279b1832 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Tue, 22 Jan 2013 14:44:06 +0000 Subject: [PATCH] Saleem Abdulrasool: Ensure that __GLIBCXX__ is defined when building with libsupc++. llvm-svn: 173164 --- libcxx/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt index b793e6e..96d17fb 100644 --- a/libcxx/CMakeLists.txt +++ b/libcxx/CMakeLists.txt @@ -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 ';'.") -- 2.7.4