aboutsummaryrefslogtreecommitdiff
path: root/modules/mono/editor/godotsharp_builds.cpp
diff options
context:
space:
mode:
authorIgnacio Etcheverry2017-10-07 01:21:11 +0200
committerIgnacio Etcheverry2017-10-07 01:21:11 +0200
commit14280ac44b2d1f687f2fde99d6998628dd1a31af (patch)
tree6c4718b6b7e24e9d25e7847ac096ea8caa9f2302 /modules/mono/editor/godotsharp_builds.cpp
parentfdc3de009c41ba58a78a3579080a67ae6b699c84 (diff)
downloadgodot-14280ac44b2d1f687f2fde99d6998628dd1a31af.tar.gz
godot-14280ac44b2d1f687f2fde99d6998628dd1a31af.tar.zst
godot-14280ac44b2d1f687f2fde99d6998628dd1a31af.zip
Quote MSBuild arguments. Fixes #11892
Diffstat (limited to '')
-rw-r--r--modules/mono/editor/godotsharp_builds.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/mono/editor/godotsharp_builds.cpp b/modules/mono/editor/godotsharp_builds.cpp
index bb4756e49..b10f1f87d 100644
--- a/modules/mono/editor/godotsharp_builds.cpp
+++ b/modules/mono/editor/godotsharp_builds.cpp
@@ -461,6 +461,10 @@ void GodotSharpBuilds::BuildProcess::start(bool p_blocking) {
if (p_blocking) {
exited = true;
exit_code = klass->get_field("exitCode")->get_int_value(mono_object);
+
+ if (exit_code != 0 && OS::get_singleton()->is_stdout_verbose())
+ OS::get_singleton()->print(String("MSBuild finished with exit code " + itos(exit_code) + "\n").utf8());
+
build_tab->on_build_exit(exit_code == 0 ? MonoBuildTab::RESULT_SUCCESS : MonoBuildTab::RESULT_ERROR);
} else {
build_instance = MonoGCHandle::create_strong(mono_object);