aboutsummaryrefslogtreecommitdiff
path: root/modules/mono/csharp_script.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-10-18 08:29:37 +0200
committerGitHub2017-10-18 08:29:37 +0200
commit9bead2e06fa2866f7fb7cea8eefb6a4fd3225b23 (patch)
treec9eeb0de212d265db1be96650f29970d6c28cc01 /modules/mono/csharp_script.cpp
parentbac99b6811bc1215c3bcadb2b5fe8174915932c2 (diff)
parentfb63ee52fbbc62ab3f1a08ede1f2bd05bfc01db5 (diff)
downloadgodot-9bead2e06fa2866f7fb7cea8eefb6a4fd3225b23.tar.gz
godot-9bead2e06fa2866f7fb7cea8eefb6a4fd3225b23.tar.zst
godot-9bead2e06fa2866f7fb7cea8eefb6a4fd3225b23.zip
Merge pull request #12208 from neikeq/l
Mono: Fix build with tools=no or target=release
Diffstat (limited to 'modules/mono/csharp_script.cpp')
-rw-r--r--modules/mono/csharp_script.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp
index 01ac4d83b..7acfaaed8 100644
--- a/modules/mono/csharp_script.cpp
+++ b/modules/mono/csharp_script.cpp
@@ -51,6 +51,7 @@
#define CACHED_STRING_NAME(m_var) (CSharpLanguage::get_singleton()->get_string_names().m_var)
+#ifdef TOOLS_ENABLED
static bool _create_project_solution_if_needed() {
String sln_path = GodotSharpDirs::get_project_sln_path();
@@ -65,6 +66,7 @@ static bool _create_project_solution_if_needed() {
return true;
}
+#endif
CSharpLanguage *CSharpLanguage::singleton = NULL;