From 53d3d66f9f66d5182492337489dc801b7bc6b3a1 Mon Sep 17 00:00:00 2001 From: Mikael Hermansson Date: Mon, 24 Jun 2024 19:52:21 +0200 Subject: [PATCH] Add `nothreads` feature tag to signify lack of `THREADS_ENABLED` --- core/os/os.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/os/os.cpp b/core/os/os.cpp index fa7f23ded0a8..40d8601af3ca 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -513,6 +513,10 @@ bool OS::has_feature(const String &p_feature) { if (p_feature == "threads") { return true; } +#else + if (p_feature == "nothreads") { + return true; + } #endif if (_check_internal_feature_support(p_feature)) {