summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/misc/build-gcc-linux.sh
diff options
context:
space:
mode:
Diffstat (limited to 'taskcluster/scripts/misc/build-gcc-linux.sh')
-rwxr-xr-xtaskcluster/scripts/misc/build-gcc-linux.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/taskcluster/scripts/misc/build-gcc-linux.sh b/taskcluster/scripts/misc/build-gcc-linux.sh
new file mode 100755
index 000000000..7621ec4aa
--- /dev/null
+++ b/taskcluster/scripts/misc/build-gcc-linux.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+set -e
+
+# This script is for building GCC for Linux.
+
+WORKSPACE=$HOME/workspace
+HOME_DIR=$WORKSPACE/build
+UPLOAD_DIR=$WORKSPACE/artifacts
+
+cd $HOME_DIR/src
+
+build/unix/build-gcc/build-gcc.sh $HOME_DIR
+
+# Put a tarball in the artifacts dir
+mkdir -p $UPLOAD_DIR
+cp $HOME_DIR/gcc.tar.* $UPLOAD_DIR