From b68e21c111f0194ddc2746baa159f473bf9da6cf Mon Sep 17 00:00:00 2001 From: Cem Eliguzel Date: Tue, 3 Sep 2019 15:39:16 +0300 Subject: [PATCH] Fixes issue #445 : I can't compile Fixes the build problem which arises when the * host is windows * target is x86_64-pc-windows-gnu The problem is fixed by setting the compiler to gcc. --- build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index 92dd2b6f..8db96109 100644 --- a/build.rs +++ b/build.rs @@ -31,6 +31,8 @@ fn main() { // GCC doesn't like some of the assembly that we use on that // platform. cfg.compiler(Path::new("clang")); + } else if target.contains("gnu") { + cfg.compiler(Path::new("gcc")); } else if target == host { cfg.compiler(Path::new("cc")); }