diff options
author | Daniel Kolesa <daniel@octaforge.org> | 2021-11-01 21:23:18 +0100 |
---|---|---|
committer | Daniel Kolesa <daniel@octaforge.org> | 2021-11-01 22:25:53 +0100 |
commit | 3a84a64d2fd600e68ee3e54a5fbc12347e9b2f9f (patch) | |
tree | 9cf1ede05fcc8089e49743c59fcc8b4d4f7b06b8 /core/os | |
parent | 96ce806b2f2797fd27a0d40738ee5be6bc30b0aa (diff) |
Add support for PowerPC family
Diffstat (limited to 'core/os')
-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 5892f91ff3..03e251880f 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -440,6 +440,15 @@ bool OS::has_feature(const String &p_feature) { if (p_feature == "riscv") { return true; } +#elif defined(__powerpc__) +#if defined(__powerpc64__) + if (p_feature == "ppc64") { + return true; + } +#endif + if (p_feature == "ppc") { + return true; + } #endif if (_check_internal_feature_support(p_feature)) { |