diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-22 21:27:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 21:27:39 +0200 |
commit | 9282b0da2751f7141fc54cbce4ef6ebbc628b6ed (patch) | |
tree | 37078844ce6f37c17968b57fa13e1a4b2687dbaa /core/os/os.cpp | |
parent | 3bebbcacdbe7922af97fd8b26ef30c19eee94ba0 (diff) | |
parent | 474d0f58f5f7c788f75798504173d653f4371b0a (diff) |
Merge pull request #53508 from aaronfranke/riscv
Diffstat (limited to 'core/os/os.cpp')
-rw-r--r-- | core/os/os.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/os/os.cpp b/core/os/os.cpp index 7404ffdcd5..5892f91ff3 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -431,6 +431,15 @@ bool OS::has_feature(const String &p_feature) { if (p_feature == "arm") { return true; } +#elif defined(__riscv) +#if __riscv_xlen == 8 + if (p_feature == "rv64") { + return true; + } +#endif + if (p_feature == "riscv") { + return true; + } #endif if (_check_internal_feature_support(p_feature)) { |