From 802a952ed78c9f747f3c7f4f3a9c1277a5848117 Mon Sep 17 00:00:00 2001 From: Jordan Rhee Date: Tue, 4 Sep 2018 17:04:12 -0700 Subject: [PATCH] msvc: pass -Thost=x64 when compiling x64 target --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index eed8808..e27945d 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -394,6 +394,9 @@ impl Config { if self.generator.is_none() { cmd.arg("-G").arg(self.visual_studio_generator(&target)); } + if target.contains("x86_64") { + cmd.arg("-Thost=x64"); + } } else if target.contains("redox") { if !self.defined("CMAKE_SYSTEM_NAME") { cmd.arg("-DCMAKE_SYSTEM_NAME=Generic");