From 2c90bc50b4b92f83bdd6618df29be10df53d0c82 Mon Sep 17 00:00:00 2001 From: Michael Kaltschmid Date: Thu, 5 Sep 2019 03:03:43 +0200 Subject: [PATCH] Add support for "x86_64-pc-windows-msvc" on Azure Pipelines. --- azure-pipelines.yml | 1 + src/main.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2e99c803b..3bbac16f2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -66,6 +66,7 @@ strategy: thumbv7em-none-eabi: { TARGET: thumbv7em-none-eabi, STD: 1 } thumbv7em-none-eabihf: { TARGET: thumbv7em-none-eabihf, STD: 1 } thumbv7m-none-eabi: { TARGET: thumbv7m-none-eabi, STD: 1 } + x86_64-pc-windows-msvc: { TARGET: x86_64-pc-windows-msvc, CPP: 1, STD: 1, RUN: 1, VM_IMAGE: vs2017-win2016, DEPLOY: 1 } steps: - template: ci/azure-install-rust.yml diff --git a/src/main.rs b/src/main.rs index 7eeff67b9..7f62ccac6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,7 +62,7 @@ impl Host { } else if *self == Host::X86_64UnknownLinuxGnu { target.map(|t| t.needs_docker()).unwrap_or(true) } else if *self == Host::X86_64PcWindowsMsvc { - target.map(|t| t.needs_docker()).unwrap_or(false) + target.map(|t| t.triple() != Host::X86_64PcWindowsMsvc.triple() && t.needs_docker()).unwrap_or(false) } else { false }