Bug 1205242 - Part 2: Require libc++ for building the clang plugin on OSX; r=ted
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 28 Sep 2015 13:19:35 -0400
changeset 264914 9c445ab04fc314f11f9cfbf8bc2e8d3e53ee4e5f
parent 264913 a80d382a693c236ec402f62d26381534216b2652
child 264915 d22d047dd978a621b6ed4202c3676078b079dd54
push id29450
push usercbook@mozilla.com
push dateTue, 29 Sep 2015 10:00:39 +0000
treeherdermozilla-central@acdb22976ff8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1205242
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1205242 - Part 2: Require libc++ for building the clang plugin on OSX; r=ted
build/clang-plugin/moz.build
--- a/build/clang-plugin/moz.build
+++ b/build/clang-plugin/moz.build
@@ -8,11 +8,16 @@ SharedLibrary('clang-plugin')
 
 SOURCES += [
     'clang-plugin.cpp',
 ]
 
 DISABLE_STL_WRAPPING = True
 NO_VISIBILITY_FLAGS = True
 
+# libc++ is required to build plugins against clang on OS X.
+if CONFIG['HOST_OS_ARCH'] == 'Darwin':
+    CXXFLAGS += ['-stdlib=libc++']
+    LDFLAGS += ['-lc++']
+
 DIRS += [
     'tests',
 ]