summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2013-01-22 14:44:06 +0000
committerHoward Hinnant <hhinnant@apple.com>2013-01-22 14:44:06 +0000
commit2ac1ae6150c006295cd96ea27afd7ff4279b1832 (patch)
tree58d585e397fa3841300b6fe3f6506e516d7d92dc /libcxx
parent44ee2e7a23f34cab39b38c189e28d5b91d887e21 (diff)
downloadbcm5719-llvm-2ac1ae6150c006295cd96ea27afd7ff4279b1832.tar.gz
bcm5719-llvm-2ac1ae6150c006295cd96ea27afd7ff4279b1832.zip
Saleem Abdulrasool: Ensure that __GLIBCXX__ is defined when building with libsupc++.
llvm-svn: 173164
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt
index b793e6ec54e..96d17fb732e 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 ';'.")
OpenPOWER on IntegriCloud