-
Notifications
You must be signed in to change notification settings - Fork 1
/
resources.sh
executable file
·27 lines (23 loc) · 925 Bytes
/
resources.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
echo "*****************************************"
echo "* Download GCC & Binutils *"
echo "*****************************************"
export IS_MASTER="${1}"
download() {
if [ "${IS_MASTER}" == "master" ]; then
git clone -b master --depth=1 git://sourceware.org/git/binutils-gdb.git binutils
git clone -b master --depth=1 git://gcc.gnu.org/git/gcc.git gcc
git clone -b dev https://github.com/facebook/zstd zstd
else
git clone -b binutils-2_40-branch --depth=1 git://sourceware.org/git/binutils-gdb.git binutils
git clone -b releases/gcc-13 --depth=1 https://github.com/Diaz1401/gcc-13 gcc
git clone -b v1.5.5 https://github.com/facebook/zstd zstd
fi
sed -i '/^development=/s/true/false/' binutils/bfd/development.sh
cd gcc
./contrib/download_prerequisites
cd ../binutils
git apply -3 ../patch/compilespeed-binutils.patch || true
cd ..
}
download