Port bug 818061 - Fallback to systems default clang if CC/CXX is not set. r=bustage-fix for make check-sync-dirs failure.
authorMark Banner <bugzilla@standard8.plus.com>
Thu, 06 Dec 2012 19:02:44 +0000
changeset 14505 c8b42073433727a96f887ee687084aff9d9a087a
parent 14504 1fbd802f8ebd1f6781d034b6501b6e0f5147a06b
child 14506 8adf2847959205bf3d36eb5726706a0775fbbf36
push id845
push userbugzilla@standard8.plus.com
push dateTue, 19 Feb 2013 18:11:16 +0000
treeherdercomm-beta@ecc3ce2d7daa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix
bugs818061
Port bug 818061 - Fallback to systems default clang if CC/CXX is not set. r=bustage-fix for make check-sync-dirs failure.
build/macosx/mozconfig.common
--- a/build/macosx/mozconfig.common
+++ b/build/macosx/mozconfig.common
@@ -8,9 +8,20 @@ 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++
 fi
+
+# If not set use the system default clang
+if [ -z "$CC" ]; then
+    export CC=clang
+fi
+
+# If not set use the system default clang++
+if [ -z "$CXX" ]; then
+    export CXX=clang++
+fi
+
 ac_add_options --with-ccache