-
Notifications
You must be signed in to change notification settings - Fork 13
Update p4api 24.1 & openssl 3 for macOS arm64, keeping the old 21.2 for Windows and Linux #30
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
PR Reviewer Guide 🔍(Review updated until commit 5450320)Here are some key observations to aid the review process:
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr-agent |
Note that the Zip failed to capture the MacOS builds |
…ding macOS arm64 Edited to only update macOS libraries and binaries
This will require an update of the Unity Engine build and installation scripts
756f37f
to
b9f25ab
Compare
- build with Visual Studio 2022 and Windows 10 SDK for long path names - add support for macOS arm64 using P4 API 2024.1 (for macOS only)
Persistent review updated to latest commit 5450320 |
Makefile.osx
Outdated
LDFLAGS = -L./P4Plugin/Source/p4api/lib/osx64 -L./P4Plugin/Source/openssl/lib/osx64 -arch x86_64 -lstdc++ -mmacosx-version-min=10.11 | ||
else | ||
PLATFORM = OSXarm64 | ||
CXXFLAGS = -O2 -arch arm64 -mmacosx-version-min=12.0 |
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.
Just want to check on one thing, we may have raised the min spec for the editor in 6.3+ to macOS 13.0. If that is true then we should change the arg to all the -mmacosx-version-min
flags to 13.0. I'm checking and I'll get back to you here
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.
But please note that we have always backported the plugin to all active Unity streams until now.
Even if in this case I would gladly discard 2021.3 xLTS and 2022.3 xLTS, it would be really important to backport this down to Unity 6.0 LTS
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.
Oh sorry, just saw this comment now. In that case keep the min spec as is, except for the ones I changed to 12.0, I added suggestions to put that back to 11.0.
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.
Looks good! Just update the min spec to 13.0 and then we're good to go
Note that we use -mmacosx-version-min=10.11 for x86_64Update Makefile.osx Co-authored-by: David Rogers <davidro@unity3d.com>
ca4dd09
to
4d2d5ab
Compare
I found this warning in the logs of the MacOS build https://unity-ci.cds.internal.unity3d.com/job/56476098/logs
For reference, Unity 6.0 supports macOS Big Sur 11 or newer (https://docs.unity3d.com/6000.0/Documentation/Manual/system-requirements.html) |
This is a common warning that should not have any negative effects. We even have those in the main editor build. However it is probably possible to configure home-brew to build the libs to target the older version. But that is very likely more work than it's worth. |
0487b17
to
4d2d5ab
Compare
46c94ab
to
42de831
Compare
42de831
to
c786e22
Compare
For the record, this is now part of the latest release https://github.com/Unity-Technologies/NativeVersionControlPlugins/releases/tag/1.4.0 that is going to be merged to unity trunk and published later down the line in Unity 6.4 (and be port back down to other branches) |
Purpose of this PR
Add support for macOS ARM64 architecture (Apple Silicon, e.g. M1)
Don't touch other OSes, since we don't have the bandwidth to update the libraries and then validate the binaries for Windows and Linux.
This is a follow-up of Update to 24.1, openssl 3, windows x64 binaries and building macOS arm64 #29
Testing status
Manual Tests: What did you do?
Note: for now on Windows 11 x64 only
Yamato: (Select your branch):
https://unity-ci.cds.internal.unity3d.com/project/421/branch/update-p4api-24.1-macos-arm64