-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from Faless/linux/arms
[Linux] Add arm32/arm64 linux builds support
- Loading branch information
Showing
6 changed files
with
98 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
diff --git a/godot-cpp-3.x/godot-headers/gdnative/gdnative.h b/godot-cpp-3.x/godot-headers/gdnative/gdnative.h | ||
index c0573d21b5d7a..ec95c4c4ebfcc 100644 | ||
--- a/godot-cpp-3.x/godot-headers/gdnative/gdnative.h | ||
+++ b/godot-cpp-3.x/godot-headers/gdnative/gdnative.h | ||
@@ -37,20 +37,24 @@ extern "C" { | ||
|
||
#if defined(_WIN32) || defined(__ANDROID__) | ||
#define GDCALLINGCONV | ||
-#define GDAPI GDCALLINGCONV | ||
+ | ||
#elif defined(__APPLE__) | ||
#include "TargetConditionals.h" | ||
#if TARGET_OS_IPHONE | ||
#define GDCALLINGCONV __attribute__((visibility("default"))) | ||
-#define GDAPI GDCALLINGCONV | ||
#elif TARGET_OS_MAC | ||
#define GDCALLINGCONV __attribute__((sysv_abi)) | ||
-#define GDAPI GDCALLINGCONV | ||
#endif | ||
-#else // !_WIN32 && !__APPLE__ | ||
+ | ||
+#else // Linux/BSD/Web | ||
+#if defined(__aarch64__) || defined(__arm__) | ||
+#define GDCALLINGCONV | ||
+#else | ||
#define GDCALLINGCONV __attribute__((sysv_abi)) | ||
-#define GDAPI GDCALLINGCONV | ||
#endif | ||
+#endif | ||
+ | ||
+#define GDAPI GDCALLINGCONV | ||
|
||
// This is for libraries *using* the header, NOT GODOT EXPOSING STUFF!! | ||
#if !defined(GDN_EXPORT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters