x86 exe in x64 folder
Even with docker installed, the docker build method didn't work for me so I use the method with vsdownload.py and install.sh.
I noticed, the .exe files copied to x64 are the same as x86 in the bin folder.
Output from cl.exe
> cd /opt/msvc/bin/x64
> ./cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29112 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
That cl.exe should have been copied from Hostx64/x64.
I hope this mistake didn't affect the other folders.
I've check the arm and arm64 folders and they had the correct cl.exe.
Even with
dockerinstalled, the docker build method didn't work for me
That's odd - can you share an error message about what failed there?
so I use the method with
vsdownload.pyandinstall.sh.I noticed, the .exe files copied to
x64are the same asx86in thebinfolder.Output from
cl.exe> cd /opt/msvc/bin/x64 > ./cl Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29112 for x86 Copyright (C) Microsoft Corporation. All rights reserved. usage: cl [ option... ] filename... [ /link linkoption... ]That
cl.exeshould have been copied fromHostx64/x64.
What part of the copying has gone wrong here? What does /opt/msvc/bin/x64/msvcenv.sh contain (what ARCH does it declare)?
What part of the copying has gone wrong here? What does /opt/msvc/bin/x64/msvcenv.sh contain (what ARCH does it declare)?
Nothing wrong with msvcenv.sh, it is correctly set at ARCH=x64.
What part of the copying has gone wrong here? What does /opt/msvc/bin/x64/msvcenv.sh contain (what ARCH does it declare)?
Nothing wrong with
msvcenv.sh, it is correctly set atARCH=x64.
Ok, so you have vc/tools/msvc/14.27.29110/bin/Hostx64/x64/cl.exe (and the rest of that directory) being equal to vc/tools/msvc/14.27.29110/bin/Hostx64/x86/cl.exe? I can't reproduce that, I just tried...