Skip to content

Commit

Permalink
msvc: pass -Thost=x64 when compiling x64 target
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanrh1 committed Sep 6, 2018
1 parent d9d6ba5 commit 802a952
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 802a952

Please sign in to comment.