diff options
Diffstat (limited to 'cortex-m-rt/ci/install.sh')
-rw-r--r-- | cortex-m-rt/ci/install.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cortex-m-rt/ci/install.sh b/cortex-m-rt/ci/install.sh index 3c41921..567ca9d 100644 --- a/cortex-m-rt/ci/install.sh +++ b/cortex-m-rt/ci/install.sh @@ -3,6 +3,12 @@ set -euxo pipefail main() { if [ $TARGET != x86_64-unknown-linux-gnu ]; then rustup target add $TARGET + + if [ ${CC:-gcc} = gcc ]; then + sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa -y + sudo apt-get update -q + sudo apt-get install gcc-arm-embedded -y + fi fi } |