msvc: pass -Thost=x64 when compiling x64 target#57
msvc: pass -Thost=x64 when compiling x64 target#57alexcrichton merged 1 commit intorust-lang:masterfrom jordanrh1:fix-msvc-x64
Conversation
|
Thanks! |
|
Er actually, shouldn't this match on the host target rather than the |
|
Pretty sure 'target' in this case refers to the host target. When I cross compile to thumbv7a-pc-windows-msvc, 'target' is x86_64-pc-windows-msvc. |
|
Hm are you sure? That's what the |
|
I'm sure. |
|
Ah ok I think we're talking about different things, I assumed that we'd pass this argument for all compiles (even if you're cross-compiling) to use the 64-bit host compiler by default. But it sounds like what you're targeting this patch for is to only use the 64-bit host compiler when targeting a 64-bit platform, which is also fine. |
If you try to build rust for
--host x86_64-pc-windows-msvc, you will receive the following error when it tries to compile llvm:This change passes
-Thost=x64to cmake when compiling for x64, which eliminates the error.