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 . "$topsrcdir/build/mozconfig.common"
7 if [ -d "$topsrcdir/clang" ]; then
8 # mozilla-central based build
9 export CC=$topsrcdir/clang/bin/clang
10 export CXX=$topsrcdir/clang/bin/clang++
11 elif [ -d "$topsrcdir/../clang" ]; then
12 # comm-central based build
13 export CC=$topsrcdir/../clang/bin/clang
14 export CXX=$topsrcdir/../clang/bin/clang++
17 # If not set use the system default clang
22 # If not set use the system default clang++
23 if [ -z "$CXX" ]; then
27 ac_add_options --with-ccache