Browse Source

Merge pull request #93563 from mihe/nothreads-feature

Add `nothreads` feature tag to signify lack of `THREADS_ENABLED`
Rémi Verschelde 1 year ago
parent
commit
6b281c0c07
1 changed files with 4 additions and 0 deletions
  1. 4 0
      core/os/os.cpp

+ 4 - 0
core/os/os.cpp

@@ -513,6 +513,10 @@ bool OS::has_feature(const String &p_feature) {
 	if (p_feature == "threads") {
 	if (p_feature == "threads") {
 		return true;
 		return true;
 	}
 	}
+#else
+	if (p_feature == "nothreads") {
+		return true;
+	}
 #endif
 #endif
 
 
 	if (_check_internal_feature_support(p_feature)) {
 	if (_check_internal_feature_support(p_feature)) {