Keep build/ in sync: Bug 1262057 - Find gcc using TOOLTOOL_DIR. rs=bustage-fix CLOSED TREE

--HG--
extra : rebase_source : 1ea3570e0d9cf0893cf6c721e26e2c834ca1b53c
This commit is contained in:
Edmund Wong 2016-04-07 22:51:09 +02:00
Родитель 601589e9b7
Коммит 203c926b1a
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -7,18 +7,20 @@ fi
. "$topsrcdir/build/mozconfig.common"
TOOLTOOL_DIR=${TOOLTOOL_DIR:-$topsrcdir}
# some b2g desktop builds still happen on i686 machines, and the tooltool
# toolchain is x86_64 only.
# We also deal with valgrind builds here, they don't use tooltool manifests at
# all yet.
if [ -z "$no_tooltool" ]
then
CC="$topsrcdir/gcc/bin/gcc"
CXX="$topsrcdir/gcc/bin/g++"
CC="$TOOLTOOL_DIR/gcc/bin/gcc"
CXX="$TOOLTOOL_DIR/gcc/bin/g++"
# We want to make sure we use binutils and other binaries in the tooltool
# package.
mk_add_options PATH="$topsrcdir/gcc/bin:$PATH"
mk_add_options PATH="$TOOLTOOL_DIR/gcc/bin:$PATH"
else
CC="/tools/gcc-4.7.3-0moz1/bin/gcc"
CXX="/tools/gcc-4.7.3-0moz1/bin/g++"