-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSVC builds are broken #64904
Comments
I believe @bruvzg is working on cleaning this up. |
We should probably have it either allow |
I guess custom version of |
BTW, this part is not urgent, but the whole Windows |
Yeah, there are messages to that effect. I know I pointed this whole regression out earlier, but it felt right to properly log this issue as soon as possible so it can be tracked |
Same here. But it seems it just works if I don't call any of the Aside, @SaracenOne, |
I don't call
|
Do you have the |
Here's an almost finished fix (MSVC part should work, but need some extra work on MinGW detection and cleanup) - #64921 |
@RandomShaper I don't see it in system or user variables. I don't know if the VS 2019 command line is adding more. I never had to deal with this before. |
@Zylann, then I guess you can just unset it from Widows advanced settings to have your builds working again even while this issue exists. (Well, or alternatively unset it manually — |
Also for some reason my CI builds fine with MSVC https://github.com/Zylann/godot_voxel/actions/runs/2937174477 (without the PR) |
This may be obvious, but unsetting VCINSTALLDIR is not an option for people with multiple installed compilers. We really should be testing with the officially supported way of doing Visual Studio command line builds (which is via the platform/arch specific command prompts or equivalent scripts) and not just with the default command prompt. https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-170 Thanks for already developing a fix bruvzg! |
Godot version
f03ac21
System information
Windows 10, Vulkan, Intel® Core™ i7-8700K, Nvidia GTX 1080 (471.11)
Issue description
Bisected issue to this #55778. Seems to consistently break with the error 'Arch argument should not be used when using VCINSTALLDIR' when compiling with the Visual Studio toolchain regardless whether the arch argument is absent or any other are seemingly used. Seems to compile fine though if this block of code is outright removed:
Steps to reproduce
Simply attempt to run SCons with the MSVC toolchain. This is the command I'm using
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 && scons platform=windows
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: