Inconsistent build options in a generated Visual Studio project #79127
Description
Godot version
4.1dev [cdd2313]
System information
Windows 11 22H2 - Visual Studio 2022 (17.6.4) - SCons 4.5.2 - Python 3.10.11
Issue description
Multiple build options are ignored in a Visual Studio project generation step.
Build command line in Visual Studio project built with options vsproj=yes dev_build=yes dev_mode=yes
:
Build command line in Visual Studio project built with options vsproj=yes dev_build=yes verbose=yes warnings=extra tests=yes
:
As you can see in the second screenshot, options 'verbose' and 'warnings' are missing in the Visual Studio project. So is there any specific reason why only some options are transferred, or can I modify the generate_vs_project
method to copy all original options (excluding vsproj
of course) and create a PR? Also, I'm curious: why is the progress
option explicitly set to no
for Visual Studio projects?
Lines 851 to 874 in cdd2313
Steps to reproduce
- Build the engine with options
vsproj=yes dev_build=yes dev_mode=yes
- Open the generated project in Visual Studio
- Open projects's NMake properties (Project->Properties->NMake)
- Check
Build Command Line
andRebuild All Command Line
properties - Close Visual Studio
- Rebuild the engine with options
vsproj=yes dev_build=yes verbose=yes warnings=extra tests=yes
- Open the generated project in Visual Studio
- Open projects's NMake properties (Project->Properties->NMake)
- Check
Build Command Line
andRebuild All Command Line
properties
Minimal reproduction project
N/A
Activity