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