-
Notifications
You must be signed in to change notification settings - Fork 39
Arm64 aupport #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thank you for the PR! I'll have a closer look ASAP. |
@dixyes Could you please share how did you manage to build php for arm64? :) I am trying to build it with help of your branch, but hitting several issues ... :-/ (seems configure.js in php is not arm64 compatible at this moment as it for example cannot properly parse version from cl.exe for arm64, etc., I did few workarounds, but still some more work is needed...) |
I've fixed sjlj dependency at makefile just now. try this: rem --single-branch --depth 1 is for speeding up cloning, you can omit it to fetch full source history
git clone --single-branch --depth 1 --branch arm64 https://github.com/dixyes/php-sdk-binary-tools
git clone --single-branch --depth 1 --branch win_arm64 https://github.com/dixyes/php-src
call php-sdk-binary-tools/phpsdk-starter.bat -c vs16 -a arm64
rem or run following commands in standalone sdk terminal
cd php-src
buildconf
rem only disable-all tested, some extension may not work yet
configure --disable-all -enable-cli
nmake
rem php is generated at arm64 dir |
@dixyes That works perfectly! Thank you :) (for anyone else who will try this after me, there is tiny typo in configure command, it's missing dash in --enable-cli). Do you have pull request also for those php-src changes which I can follow? :) Now my next steps will be to get it working with Apache ... :) (I have native Windows ARM64 build of Apache already). |
Missing dash fixed.
Modifications on php source code is in pr: php/php-src#7702 php/php-src#7703 php/php-src#7704 Modifications on php build system depends on this pr, so I have not send a pr for them |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR!
Even though a lot is missing for successfully cross compiling for ARM64 (most notable the dependencies; phpsdk_deps -c
fails), this looks like a reasonable first step.
It "just work" for cross-compiling (no native MSVC toolset available yet)
the built binaries:
php_aa64_521532ab.zip (using dixyes/php-src@521532ab )