Skip to content

Commit

Permalink
Merge pull request #93563 from mihe/nothreads-feature
Browse files Browse the repository at this point in the history
Add `nothreads` feature tag to signify lack of `THREADS_ENABLED`
  • Loading branch information
akien-mga committed Jun 25, 2024
2 parents 5d089e1 + 53d3d66 commit 6b281c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/os/os.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 6b281c0

Please sign in to comment.