Port
bug 818061 - Fallback to systems default clang if CC/CXX is not set. r=bustage-fix for make check-sync-dirs failure.
--- 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