[cfe-commits] [PATCH] [libc++] define __GLIBCXX__ if building with libsupc++

Saleem Abdulrasool compnerd at compnerd.org
Mon Jan 21 19:00:54 PST 2013


Ensure that __GLIBCXX__ is defined when building with libsupc++.

http://llvm-reviews.chandlerc.com/D316

Files:
  CMakeLists.txt

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -67,6 +67,7 @@
 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 ';'.")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D316.1.patch
Type: text/x-patch
Size: 471 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130121/5670d071/attachment.bin>


More information about the cfe-commits mailing list