Bug 1356927 - Use ar and ranlib from cctools on mac builds. r=gps

--HG--
extra : rebase_source : 89275a0930ab6e7629fe05027cfb3ed3e459f800
This commit is contained in:
Mike Hommey 2017-04-17 10:36:05 +09:00
parent eba57cc76d
commit 7008b83ac0

View File

@ -17,6 +17,8 @@ if [ -d "$topsrcdir/clang" ]; then
export DSYMUTIL=$topsrcdir/clang/bin/llvm-dsymutil
# Use an updated linker.
ldflags="-B$topsrcdir/cctools/bin"
export AR=$topsrcdir/cctools/bin/ar
export RANLIB=$topsrcdir/cctools/bin/ranlib
elif [ -d "$topsrcdir/../clang" ]; then
# comm-central based build
export CC=$topsrcdir/../clang/bin/clang
@ -25,6 +27,8 @@ elif [ -d "$topsrcdir/../clang" ]; then
export DSYMUTIL=$topsrcdir/../clang/bin/llvm-dsymutil
# Use an updated linker.
ldflags="-B$topsrcdir/../cctools/bin"
export AR=$topsrcdir/../cctools/bin/ar
export RANLIB=$topsrcdir/../cctools/bin/ranlib
fi
# Ensure the updated linker doesn't generate things our older build tools