You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
[GDExtension] Improve macOS library loading/export.
This commit is contained in:
@@ -439,6 +439,11 @@ bool OS::has_feature(const String &p_feature) {
|
||||
}
|
||||
#if defined(__x86_64) || defined(__x86_64__) || defined(__amd64__) || defined(__i386) || defined(__i386__) || defined(_M_IX86) || defined(_M_X64)
|
||||
#if defined(__x86_64) || defined(__x86_64__) || defined(__amd64__) || defined(_M_X64)
|
||||
#if defined(MACOS_ENABLED)
|
||||
if (p_feature == "universal") {
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
if (p_feature == "x86_64") {
|
||||
return true;
|
||||
}
|
||||
@@ -452,6 +457,11 @@ bool OS::has_feature(const String &p_feature) {
|
||||
}
|
||||
#elif defined(__arm__) || defined(__aarch64__) || defined(_M_ARM) || defined(_M_ARM64)
|
||||
#if defined(__aarch64__) || defined(_M_ARM64)
|
||||
#if defined(MACOS_ENABLED)
|
||||
if (p_feature == "universal") {
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
if (p_feature == "arm64") {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user