Eric Fiselier | a8aa58f | 2019-06-18 19:31:38 +0000 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | set -x |
| 4 | |
| 5 | cd /libcxx |
| 6 | git pull |
| 7 | |
| 8 | |
| 9 | #pushd /tmp |
| 10 | #curl -sSO https://dl.google.com/cloudagents/install-monitoring-agent.sh |
| 11 | #bash install-monitoring-agent.sh |
| 12 | #curl -sSO https://dl.google.com/cloudagents/install-logging-agent.sh |
| 13 | #bash install-logging-agent.sh --structured |
| 14 | #popd |
| 15 | |
| 16 | |
| 17 | apt-get update -y |
| 18 | apt-get upgrade -y |
| 19 | |
| 20 | apt-get install sudo -y |
| 21 | |
| 22 | # FIXME(EricWF): Remove this hack. It's only in place to temporarily fix linking libclang_rt from the |
| 23 | # debian packages. |
| 24 | # WARNING: If you're not a buildbot, DO NOT RUN! |
| 25 | apt-get install lld-9 |
| 26 | rm /usr/bin/ld |
| 27 | ln -s /usr/bin/lld-9 /usr/bin/ld |
| 28 | |
| 29 | systemctl set-property buildslave.service TasksMax=100000 |
| 30 | |
| 31 | systemctl daemon-reload |
| 32 | service buildslave restart |