2012-09-05 12:09:50 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2014-07-03 19:05:45 -07:00
|
|
|
MOZ_AUTOMATION_L10N_CHECK=0
|
|
|
|
|
|
|
|
if [ "x$IS_NIGHTLY" = "xyes" ]; then
|
|
|
|
MOZ_AUTOMATION_UPLOAD_SYMBOLS=1
|
|
|
|
MOZ_AUTOMATION_UPDATE_PACKAGING=1
|
|
|
|
fi
|
2012-09-05 12:09:50 -07:00
|
|
|
. "$topsrcdir/build/mozconfig.common"
|
|
|
|
|
2012-07-20 08:28:41 -07:00
|
|
|
if [ -d "$topsrcdir/clang" ]; then
|
|
|
|
# mozilla-central based build
|
|
|
|
export CC=$topsrcdir/clang/bin/clang
|
|
|
|
export CXX=$topsrcdir/clang/bin/clang++
|
2014-05-31 06:13:32 -07:00
|
|
|
export LLVMCONFIG=$topsrcdir/clang/bin/llvm-config
|
2012-07-20 08:28:41 -07:00
|
|
|
elif [ -d "$topsrcdir/../clang" ]; then
|
|
|
|
# comm-central based build
|
|
|
|
export CC=$topsrcdir/../clang/bin/clang
|
|
|
|
export CXX=$topsrcdir/../clang/bin/clang++
|
2014-05-31 06:13:32 -07:00
|
|
|
export LLVMCONFIG=$topsrcdir/../clang/bin/llvm-config
|
2012-07-20 08:28:41 -07:00
|
|
|
fi
|
2012-12-05 12:47:25 -08:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2014-04-29 14:06:09 -07:00
|
|
|
. "$topsrcdir/build/mozconfig.cache"
|