From d61456f4991de8ce8190077d84b9b82ce37cef9c Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Wed, 20 Dec 2017 10:32:36 +0900 Subject: [PATCH] Bug 1426283 - Work around bug 1409276. r=gps Both the cc crate and the rust compiler may want to use "cc", which, on automation, points to the system GCC compiler instead of ours. As a workaround, we add a cc symbolic link in the GCC toolchain artifact so that, as long as the GCC toolchain artifact's bin directory is in $PATH early enough, it's picked over /usr/bin/cc. --HG-- extra : rebase_source : 53cacf8a750539706a484218e168c8c9e0ba49a6 --- build/unix/build-gcc/build-gcc.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build/unix/build-gcc/build-gcc.sh b/build/unix/build-gcc/build-gcc.sh index edc945bc7221..61d1b6a3ffe1 100755 --- a/build/unix/build-gcc/build-gcc.sh +++ b/build/unix/build-gcc/build-gcc.sh @@ -116,6 +116,7 @@ build_gcc() { make $make_flags install DESTDIR=$root_dir cd $root_dir/tools + ln -s gcc gcc/bin/cc tar caf $root_dir/gcc.tar.xz gcc/ popd }