|
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/. |
|
4 |
|
5 MOZ_AUTOMATION_L10N_CHECK=0 |
|
6 |
|
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" |
|
12 |
|
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 |
|
22 |
|
23 # If not set use the system default clang |
|
24 if [ -z "$CC" ]; then |
|
25 export CC=clang |
|
26 fi |
|
27 |
|
28 # If not set use the system default clang++ |
|
29 if [ -z "$CXX" ]; then |
|
30 export CXX=clang++ |
|
31 fi |
|
32 |
|
33 ac_add_options --with-ccache |