diff options
author | Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com> | 2019-07-20 16:20:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-20 16:20:49 +0200 |
commit | 437939589234559febabb9a4c392145521a9c3a5 (patch) | |
tree | d38b344c599ac26f119d3cdfd543d3cf498c0374 /modules/mono/mono_gd/gd_mono.cpp | |
parent | 60efd67034724f3563d46e9ff3fd2db34763535b (diff) | |
parent | ec679dfffa15ac531e46df8b72aa414ef9c90cab (diff) |
Merge pull request #30710 from neikeq/issue-30526
Fix mono module build errors for release templates
Diffstat (limited to 'modules/mono/mono_gd/gd_mono.cpp')
-rw-r--r-- | modules/mono/mono_gd/gd_mono.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/mono/mono_gd/gd_mono.cpp b/modules/mono/mono_gd/gd_mono.cpp index 096ad0f5e3..2497f083b5 100644 --- a/modules/mono/mono_gd/gd_mono.cpp +++ b/modules/mono/mono_gd/gd_mono.cpp @@ -719,6 +719,7 @@ bool GDMono::_try_load_api_assemblies() { void GDMono::_load_api_assemblies() { if (!_try_load_api_assemblies()) { +#ifdef TOOLS_ENABLED // The API assemblies are out of sync. Fine, try one more time, but this time // update them from the prebuilt assemblies directory before trying to load them. @@ -752,11 +753,9 @@ void GDMono::_load_api_assemblies() { ERR_PRINT("The loaded assembly '" CORE_API_ASSEMBLY_NAME "' is in sync, but the cache update failed"); } -#ifdef TOOLS_ENABLED if (editor_api_assembly_out_of_sync) { ERR_PRINT("The assembly '" EDITOR_API_ASSEMBLY_NAME "' is out of sync"); } -#endif CRASH_NOW(); } else { @@ -764,6 +763,10 @@ void GDMono::_load_api_assemblies() { CRASH_NOW(); } } +#else + ERR_EXPLAIN("Failed to load one of the API assemblies"); + CRASH_NOW(); +#endif } } |