]> git.lizzy.rs Git - rust.git/blob - src/ci/scripts/symlink-build-dir.sh
Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup
[rust.git] / src / ci / scripts / symlink-build-dir.sh
1 #!/bin/bash
2 # We've had multiple issues with the default disk running out of disk space
3 # during builds, and it looks like other disks mounted in the VMs have more
4 # space available. This script synlinks the build directory to those other
5 # disks, in the CI providers and OSes affected by this.
6
7 set -euo pipefail
8 IFS=$'\n\t'
9
10 source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
11
12 if isWindows && isAzurePipelines; then
13     cmd //c "mkdir c:\\MORE_SPACE"
14     cmd //c "mklink /J build c:\\MORE_SPACE"
15 fi