author Joshua Cranmer <>
Mon, 12 May 2014 09:14:06 -0500
changeset 20097 e41e714750eb242b1a6022b346717076d91f0bb3
parent 20054 7c49081689a7490ec027bb36fc4a427ac9fec665
child 20183 546a24b91d054693f02fddea98b3e5c16197af9b
permissions -rw-r--r--
Bug 1006498 - Import nsCharsetConverterManager into c-c. r=Neil, patch originally due to Henri Sivonen. 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

. "$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++
elif [ -d "$topsrcdir/../clang" ]; then
    # comm-central based build
    export CC=$topsrcdir/../clang/bin/clang
    export CXX=$topsrcdir/../clang/bin/clang++

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

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

. "$topsrcdir/build/mozconfig.cache"