michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: MOZ_AUTOMATION_L10N_CHECK=0 michael@0: michael@0: if [ "x$IS_NIGHTLY" = "xyes" ]; then michael@0: MOZ_AUTOMATION_UPLOAD_SYMBOLS=1 michael@0: MOZ_AUTOMATION_UPDATE_PACKAGING=1 michael@0: fi michael@0: . "$topsrcdir/build/mozconfig.common" michael@0: michael@0: if [ -d "$topsrcdir/clang" ]; then michael@0: # mozilla-central based build michael@0: export CC=$topsrcdir/clang/bin/clang michael@0: export CXX=$topsrcdir/clang/bin/clang++ michael@0: elif [ -d "$topsrcdir/../clang" ]; then michael@0: # comm-central based build michael@0: export CC=$topsrcdir/../clang/bin/clang michael@0: export CXX=$topsrcdir/../clang/bin/clang++ michael@0: fi michael@0: michael@0: # If not set use the system default clang michael@0: if [ -z "$CC" ]; then michael@0: export CC=clang michael@0: fi michael@0: michael@0: # If not set use the system default clang++ michael@0: if [ -z "$CXX" ]; then michael@0: export CXX=clang++ michael@0: fi michael@0: michael@0: ac_add_options --with-ccache