Automatically detect if target architecture is x64 in .vc file

This allows a successful build even if the user omits specifying CPU=X64.

See #18640
This commit is contained in:
Maarten Bent 2020-03-26 22:22:33 +01:00
parent 3c53fbb94b
commit 284b25ce02
2 changed files with 22 additions and 0 deletions

View file

@ -138,6 +138,12 @@ Accepted values: IA64, X64, ARM64
Visual Studio version set by the VS command prompt.
</description>
</option>
<option name="VISUALSTUDIOPLATFORM">
<default-value>$(DOLLAR)(PLATFORM)</default-value>
<description>
Platform architecture set by the VS command prompt.
</description>
</option>
</if>
<if cond="FORMAT!='msvc'">
<set var="TARGET_CPU"/>