flag to force windows to build as x64 instead of x86?

Hello I have a x64 windows machine with visual studio 2022 and when I try and compile c++ code it runs the build as x86. Is there some flag to force x64 build?

CXX= is the requirement

That doesn’t make any sense.

I agree. There’s not enough information to know if the 64bit developer prompt was used or not or whether the VS generator is being used (which should default to the host arch these days).