1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/build/macosx/mozconfig.common Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,33 @@ 1.4 +# This Source Code Form is subject to the terms of the Mozilla Public 1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.7 + 1.8 +MOZ_AUTOMATION_L10N_CHECK=0 1.9 + 1.10 +if [ "x$IS_NIGHTLY" = "xyes" ]; then 1.11 + MOZ_AUTOMATION_UPLOAD_SYMBOLS=1 1.12 + MOZ_AUTOMATION_UPDATE_PACKAGING=1 1.13 +fi 1.14 +. "$topsrcdir/build/mozconfig.common" 1.15 + 1.16 +if [ -d "$topsrcdir/clang" ]; then 1.17 + # mozilla-central based build 1.18 + export CC=$topsrcdir/clang/bin/clang 1.19 + export CXX=$topsrcdir/clang/bin/clang++ 1.20 +elif [ -d "$topsrcdir/../clang" ]; then 1.21 + # comm-central based build 1.22 + export CC=$topsrcdir/../clang/bin/clang 1.23 + export CXX=$topsrcdir/../clang/bin/clang++ 1.24 +fi 1.25 + 1.26 +# If not set use the system default clang 1.27 +if [ -z "$CC" ]; then 1.28 + export CC=clang 1.29 +fi 1.30 + 1.31 +# If not set use the system default clang++ 1.32 +if [ -z "$CXX" ]; then 1.33 + export CXX=clang++ 1.34 +fi 1.35 + 1.36 +ac_add_options --with-ccache