Visual Studio Generator should probably prefer x64 tools when available #15319

Open
opened 2026-01-31 04:34:56 +00:00 by claunia · 0 comments
Owner

Originally created by @zadjii-msft on GitHub (Sep 22, 2021).

From #7774

Sorry to bring back closed PR to life, but is there a way to setup it to run x64 prompt by default? I still have my custom profile which calls vcvars64.bat. It is nice addition, but well unless you want to build 32-bit binaries it is kind of useless :)

@kasper93 That's a good point! VS features 6 items in the start menu:
image

Sorry to bring back closed PR to life, but is there a way to setup it to run x64 prompt by default? I still have my custom profile which calls vcvars64.bat. It is nice addition, but well unless you want to build 32-bit binaries it is kind of useless :)

Let's file a new issue at this point to represent adding preferences to the profile generator like which architecture is prioritized. Thanks!

So, the way I found to do it is to edit the profile generated by this generator and add -DevCmdArguments "-arch=x64 -host_arch=x64" or something to the Enter-VsDevShell arguments, or add -arch ... directly to the vsdevcmd.cmd arguments.

<discuss>

Originally created by @zadjii-msft on GitHub (Sep 22, 2021). From #7774 > Sorry to bring back closed PR to life, but is there a way to setup it to run x64 prompt by default? I still have my custom profile which calls `vcvars64.bat`. It is nice addition, but well unless you want to build 32-bit binaries it is kind of useless :) > @kasper93 That's a good point! VS features 6 items in the start menu: > ![image](https://user-images.githubusercontent.com/2256941/134418224-a5ad0ee7-3a4f-4958-b1d9-e7d975f4c948.png) > > Sorry to bring back closed PR to life, but is there a way to setup it to run x64 prompt by default? I still have my custom profile which calls `vcvars64.bat`. It is nice addition, but well unless you want to build 32-bit binaries it is kind of useless :) > > Let's file a new issue at this point to represent adding preferences to the profile generator like which architecture is prioritized. Thanks! > So, the way I found to do it is to edit the profile generated by this generator and add `-DevCmdArguments "-arch=x64 -host_arch=x64"` or something to the Enter-VsDevShell arguments, or add `-arch ...` directly to the `vsdevcmd.cmd` arguments. \<discuss>
claunia added the Resolution-Fix-CommittedArea-SettingsIssue-TaskProduct-Terminal labels 2026-01-31 04:34:56 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15319