Skip to content

Commit 802a952

Browse files
committed
msvc: pass -Thost=x64 when compiling x64 target
1 parent d9d6ba5 commit 802a952

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,9 @@ impl Config {
394394
if self.generator.is_none() {
395395
cmd.arg("-G").arg(self.visual_studio_generator(&target));
396396
}
397+
if target.contains("x86_64") {
398+
cmd.arg("-Thost=x64");
399+
}
397400
} else if target.contains("redox") {
398401
if !self.defined("CMAKE_SYSTEM_NAME") {
399402
cmd.arg("-DCMAKE_SYSTEM_NAME=Generic");

0 commit comments

Comments
 (0)