-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
php-swoole: 2nd try to fix arm64 build failure
- Loading branch information
1 parent
dbb7242
commit c3f52de
Showing
4 changed files
with
46 additions
and
34 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,44 @@ | ||
Fix detection of arm64 CPU. | ||
https://github.com/swoole/swoole-src/issues/3917 | ||
--- config.m4.orig 2020-11-26 21:02:32.000000000 -0600 | ||
+++ config.m4 2020-12-17 01:26:37.000000000 -0600 | ||
@@ -612,13 +612,7 @@ | ||
) | ||
|
||
if test "$SW_OS" = "MAC"; then | ||
- if test "$SW_CPU" = "arm"; then | ||
- SW_CONTEXT_ASM_FILE="arm_aapcs_macho_gas.S" | ||
- elif test "$SW_CPU" = "arm64"; then | ||
- SW_CONTEXT_ASM_FILE="arm64_aapcs_macho_gas.S" | ||
- else | ||
SW_CONTEXT_ASM_FILE="combined_sysv_macho_gas.S" | ||
- fi | ||
elif test "$SW_CPU" = "x86_64"; then | ||
if test "$SW_OS" = "LINUX"; then | ||
SW_CONTEXT_ASM_FILE="x86_64_sysv_elf_gas.S" | ||
--- thirdparty/boost/asm/jump_combined_sysv_macho_gas.S.orig 2020-11-26 21:02:33.000000000 -0600 | ||
+++ thirdparty/boost/asm/jump_combined_sysv_macho_gas.S 2020-12-17 01:25:22.000000000 -0600 | ||
@@ -15,6 +15,10 @@ | ||
#include "jump_ppc32_sysv_macho_gas.S" | ||
#elif defined(__ppc64__) | ||
#include "jump_ppc64_sysv_macho_gas.S" | ||
+#elif defined(__arm__) | ||
+ #include "jump_arm_aapcs_macho_gas.S" | ||
+#elif defined(__arm64__) | ||
+ #include "jump_arm64_aapcs_macho_gas.S" | ||
#else | ||
#error "No arch's" | ||
#endif | ||
--- thirdparty/boost/asm/make_combined_sysv_macho_gas.S.orig 2020-11-26 21:02:33.000000000 -0600 | ||
+++ thirdparty/boost/asm/make_combined_sysv_macho_gas.S 2020-12-17 01:25:22.000000000 -0600 | ||
@@ -15,6 +15,10 @@ | ||
#include "make_ppc32_sysv_macho_gas.S" | ||
#elif defined(__ppc64__) | ||
#include "make_ppc64_sysv_macho_gas.S" | ||
+#elif defined(__arm__) | ||
+ #include "make_arm_aapcs_macho_gas.S" | ||
+#elif defined(__arm64__) | ||
+ #include "make_arm64_aapcs_macho_gas.S" | ||
#else | ||
#error "No arch's" | ||
#endif |