Bug 894150 - Test.
[gecko.git] / build / macosx / mozconfig.common
blobe258b0d02cf0ebfdd10c7bd0d332d1dfd999fcf5
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
18 if [ -z "$CC" ]; then
19     export CC=clang
22 # If not set use the system default clang++
23 if [ -z "$CXX" ]; then
24     export CXX=clang++
27 ac_add_options --with-ccache