Skip to content

Commit a015caa

Browse files
authored
Merge pull request #57 from jordanrh1/fix-msvc-x64
msvc: pass -Thost=x64 when compiling x64 target
2 parents d9d6ba5 + 802a952 commit a015caa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

+3
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)