From d8166bf141f8e245569430eed98f4ba38a5957bc Mon Sep 17 00:00:00 2001
From: Philipp Hansch <dev@phansch.net>
Date: Sun, 2 Dec 2018 14:33:19 +0100
Subject: [PATCH] Travis: Add rustc sysroot bin to PATH for windows build

---
 ci/base-tests.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ci/base-tests.sh b/ci/base-tests.sh
index e46f8c4c39a..a046d21c4be 100755
--- a/ci/base-tests.sh
+++ b/ci/base-tests.sh
@@ -28,6 +28,9 @@ cd clippy_dev && cargo test && cd ..
 ./util/dev update_lints --check
 cargo +nightly fmt --all -- --check
 
+# Add bin to PATH for windows
+PATH=$PATH:$(rustc --print sysroot)/bin
+
 CLIPPY="`pwd`/target/debug/cargo-clippy clippy"
 # run clippy on its own codebase...
 ${CLIPPY} --all-targets --all-features -- -D clippy::all -D clippy::internal -Dclippy::pedantic