Bug 778035 - Add extra else block to set CC/CXX for cases that don't have clang installed. r=Callek
authorEdmund Wong <ewong@pw-wspx.org>
Fri, 10 Aug 2012 09:16:34 +0800
changeset 10843 2019e8845fbfd133c0d6dc246c1ae6392dc4cfa6
parent 10842 71eae60afbf60a611153125ea034c2f92e9ed511
child 10844 c41f464cac90049927956322737f785f2d71c76f
push id8142
push userewong@pw-wspx.org
push dateFri, 10 Aug 2012 01:28:01 +0000
treeherdercomm-central@2019e8845fbf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersCallek
bugs778035
Bug 778035 - Add extra else block to set CC/CXX for cases that don't have clang installed. r=Callek
build/macosx/common
--- a/build/macosx/common
+++ b/build/macosx/common
@@ -1,12 +1,17 @@
 if [ -d "$topsrcdir/clang" ]; then
     # mozilla-central based build
     export CC=$topsrcdir/clang/bin/clang
     export CXX=$topsrcdir/clang/bin/clang++
 elif [ -d "$topsrcdir/../clang" ]; then
     # comm-central based build
     export CC=$topsrcdir/../clang/bin/clang
     export CXX=$topsrcdir/../clang/bin/clang++
+else
+    # SeaMonkey does not have clang installed so need
+    # to set CC and CXX here.
+    export CC=/usr/bin/gcc-4.2
+    export CXX=/usr/bin/g++-4.2
 fi
 
 ac_add_options --enable-stdcxx-compat
 ac_add_options --with-ccache