You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, for the windows build, the compiler is trying to find the vswhere tool, which could be seen here.
However that breaks when the user installs only the VS Build Tools (not the editor), which vswhere cannot detect, as it's not a complete installation of Visual Studio. Which forces most people to have a second installation just for c3, which is just a bit dumb (sry for the wording, but there isn't a better word there).
An easy fix would be just to try to find vcvarsall.bat instead of vswhere, which is installed by default at {{Program Files}}\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat (Program Files there could be x86 or not). That is also installed by the editor and it's the "default" way other compilers try to know if the user has the Build Tools installed (Examples with Odin, Rust).
This also means the python script could be better optimized to install only the necessary build tools, not the whole editor, but that's another "issue" (not really an issue).
Thanks in advance, Sun.
The text was updated successfully, but these errors were encountered:
Hello.
Currently, for the windows build, the compiler is trying to find the vswhere tool, which could be seen here.
However that breaks when the user installs only the VS Build Tools (not the editor), which
vswhere
cannot detect, as it's not a complete installation of Visual Studio. Which forces most people to have a second installation just for c3, which is just a bit dumb (sry for the wording, but there isn't a better word there).An easy fix would be just to try to find
vcvarsall.bat
instead ofvswhere
, which is installed by default at{{Program Files}}\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat
(Program Files there could be x86 or not). That is also installed by the editor and it's the "default" way other compilers try to know if the user has the Build Tools installed (Examples with Odin, Rust).This also means the python script could be better optimized to install only the necessary build tools, not the whole editor, but that's another "issue" (not really an issue).
Thanks in advance, Sun.
The text was updated successfully, but these errors were encountered: