godotengine / godot-cpp

C++ bindings for the Godot script API
MIT License
1.69k stars 528 forks source link

SCons: Add `silence_msvc` option for Windows #1507

Closed Repiteo closed 3 months ago

Repiteo commented 3 months ago

Brings over the silence_msvc option from the main repo, which suppresses all redundant output from MSVC's cl/link tools. Additionally, any error output that does occur is instead rerouted to stderr as expected, instead of printing it in stdout for some reason.

Before:

Compiling D:\Godot\Github\godot-cpp\gen\src\classes\popup.cpp ...
animation_node_blend3.cpp
visual_shader_node_varying.cpp
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\visual_shader_node_uv_func.cpp ...
shape_cast2d.cpp
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\gpu_particles_collision_sdf3d.cpp ...
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\gltf_camera.cpp ...
v_split_container.cpp
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\script_create_dialog.cpp ...
progress_bar.cpp
char_fx_transform.cpp
gltf_state.cpp
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\v_box_container.cpp ...
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\popup_menu.cpp ...
shape2d.cpp
popup.cpp

After:

Compiling D:\Godot\Github\godot-cpp\gen\src\classes\grid_container.cpp ...
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\visual_shader_node_curve_xyz_texture.cpp ...
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\open_xr_composition_layer_quad.cpp ...
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\skin_reference.cpp ...
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\graph_frame.cpp ...
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\render_scene_buffers_configuration.cpp ...
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\visual_shader_node_float_op.cpp ...
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\navigation_mesh_generator.cpp ...
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\gradient.cpp ...
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\noise_texture3d.cpp ...
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\web_socket_multiplayer_peer.cpp ...
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\visual_shader_node_linear_scene_depth.cpp ...
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\mutex.cpp ...
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\gpu_particles_collision_sphere3d.cpp ...
Compiling D:\Godot\Github\godot-cpp\gen\src\classes\render_scene_buffers.cpp ...
dsnopek commented 2 months ago

Cherry-picked for 4.2 in PR https://github.com/godotengine/godot-cpp/pull/1527

dsnopek commented 2 months ago

Cherry-picked for 4.1 in PR https://github.com/godotengine/godot-cpp/pull/1529