none
How to make use of "bin\HostX64\x86" binaries?

    Question

  • We have the issue that the linker.exe runs out of memory in a very large C/C++ project when /LTCG is turned on.

    Now I just saw that the VS2017 RC comes with a new compiler tool folder structure, described in this MSDN blog:

    blogs.msdn.microsoft.com/vcblog/2016/10/07/compiler-tools-layout-in-visual-studio-15/

    So there seems to be a x64 linker.exe targeting x86, which would most likely solve our issues. But I couldn't find any hint on how to make use of this toolchain in Visual Studio... Is there a option or something to switch to the x64 binaries?

    Friday, February 17, 2017 11:24 AM

All replies

  • Hi The-G,

    Welcome to the MSDN forum.

    >>Is there a option or something to switch to the x64 binaries?

    Please have a look at this: How to: Enable a 64-Bit Visual C++ Toolset on the Command Line and any of the compilers can be used on the command line by running the vcvarsall.bat command file to configure the path and environment variables that enable the compiler toolset.

    To configuration a Command Prompt to use the 64-bit native toolset to target x86, x64, and ARM platforms, please check the following:

    To run vcvarsall.bat to use a 64-bit toolset

    1. At the command prompt, change to the Visual C++ installation directory. (The location depends on the system and the Visual Studio installation, but a typical location is C:\Program Files (x86)\Microsoft Visual Studio version\VC\.) For example, enter:

                   cd "Program Files (x86)Microsoft Visual Studio 12.0VC"

    2. To configure this Command Prompt window for 64-bit command-line builds that target x64 platforms, at the command prompt, enter:

                   vcvarsall amd64

    3. To configure this Command Prompt window for 64-bit command-line builds that target x86 platforms, at the command prompt, enter:

                  vcvarsall amd64_x86

    4. To configure this Command Prompt window for 64-bit command-line builds that target ARM platforms, at the command prompt, enter:

                  vcvarsall amd64_arm

    Best regards,

    Sara


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, February 20, 2017 6:58 AM
    Moderator