title: Configure Visual C++ project to use the 64-bit tool set when building 32-bit executable
body: <p>I am trying to enable link-time codegen (LTCG) and whole program optimization (WPO) for the build of a large Windows C++ application built with Visual Studio 2017. The 64-bit product builds fine but the codegen step of our 32-bit build runs out of memory.</p>
  
  <p>So, I need to switch the 32-bit builds to use the 64-bit link.exe as described here: <a href="https://docs.microsoft.com/en-us/cpp/build/how-to-enable-a-64-bit-visual-cpp-toolset-on-the-command-line" rel="noreferrer" title="How to: Enable a 64-Bit, x64 hosted Visual C++ toolset on the command line">How to: Enable a 64-Bit, x64 hosted Visual C++ toolset on the command line</a></p>
  
  <p>Specifically:</p>
  
  <blockquote>
    <p>The 32-bit and 64-bit tools generate identical code, but the 64-bit tools support more memory for precompiled header symbols and the Whole Program Optimization (/GL and /LTCG) options. If you run into memory limits when you use the 32-bit tools, try the 64-bit tools.</p>
  </blockquote>
  
  <p>It describes doing this from a command line build but I need it within the devenv environment. I have searched unsuccessfully for a Solution or Project setting to control using the 64-bit tool set for a 32-bit build. </p>
  
  <p>I suspect I'll need to edit the .vcxproj file directly but am not sure what to add. Can anyone tell me how to setup my 32-bit build this way?</p>