Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 4 | |
michael@0 | 5 | MOZ_AUTOMATION_L10N_CHECK=0 |
michael@0 | 6 | |
michael@0 | 7 | if [ "x$IS_NIGHTLY" = "xyes" ]; then |
michael@0 | 8 | MOZ_AUTOMATION_UPLOAD_SYMBOLS=1 |
michael@0 | 9 | MOZ_AUTOMATION_UPDATE_PACKAGING=1 |
michael@0 | 10 | fi |
michael@0 | 11 | . "$topsrcdir/build/mozconfig.common" |
michael@0 | 12 | |
michael@0 | 13 | if [ -d "$topsrcdir/clang" ]; then |
michael@0 | 14 | # mozilla-central based build |
michael@0 | 15 | export CC=$topsrcdir/clang/bin/clang |
michael@0 | 16 | export CXX=$topsrcdir/clang/bin/clang++ |
michael@0 | 17 | elif [ -d "$topsrcdir/../clang" ]; then |
michael@0 | 18 | # comm-central based build |
michael@0 | 19 | export CC=$topsrcdir/../clang/bin/clang |
michael@0 | 20 | export CXX=$topsrcdir/../clang/bin/clang++ |
michael@0 | 21 | fi |
michael@0 | 22 | |
michael@0 | 23 | # If not set use the system default clang |
michael@0 | 24 | if [ -z "$CC" ]; then |
michael@0 | 25 | export CC=clang |
michael@0 | 26 | fi |
michael@0 | 27 | |
michael@0 | 28 | # If not set use the system default clang++ |
michael@0 | 29 | if [ -z "$CXX" ]; then |
michael@0 | 30 | export CXX=clang++ |
michael@0 | 31 | fi |
michael@0 | 32 | |
michael@0 | 33 | ac_add_options --with-ccache |