build/macosx/mozconfig.common
author Joshua Cranmer <Pidgeot18@gmail.com>
Tue, 03 Jun 2014 09:44:04 -0500
changeset 20183 546a24b91d054693f02fddea98b3e5c16197af9b
parent 20054 7c49081689a7490ec027bb36fc4a427ac9fec665
child 20661 00d92d418c2f5ddc3e1a51c7920378af8ee64d17
permissions -rw-r--r--
Port bug 861425 to c-c to fix check-sync-dirs bustage, rs=port by build peer. CLOSED TREE

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

. "$topsrcdir/build/mozconfig.common"

if [ -d "$topsrcdir/clang" ]; then
    # mozilla-central based build
    export CC=$topsrcdir/clang/bin/clang
    export CXX=$topsrcdir/clang/bin/clang++
    export LLVMCONFIG=$topsrcdir/clang/bin/llvm-config
elif [ -d "$topsrcdir/../clang" ]; then
    # comm-central based build
    export CC=$topsrcdir/../clang/bin/clang
    export CXX=$topsrcdir/../clang/bin/clang++
    export LLVMCONFIG=$topsrcdir/../clang/bin/llvm-config
fi

# If not set use the system default clang
if [ -z "$CC" ]; then
    export CC=clang
fi

# If not set use the system default clang++
if [ -z "$CXX" ]; then
    export CXX=clang++
fi

. "$topsrcdir/build/mozconfig.cache"