-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Azure CI: Include macOS arm64 libraries in prebuilt Mac package #3583
Conversation
f58711c
to
cc9d205
Compare
@p0nce: This should be usable now; you can download an artifact from https://dev.azure.com/ldc-developers/ldc/_build/results?buildId=2232&view=artifacts&type=publishedArtifacts. There are gazillions of linker warnings like
They happened for iOS too, but have been suppressed by compiling the libs with Anyway, this shouldn't be related in any way to LDC itself, as the IR should be equivalent in this regard for macOS on x64 and arm64 ( |
\"-Xcc=-target\", | ||
\"-Xcc=$triple_arm64\", | ||
\"-Xcc=-isysroot\", | ||
\"-Xcc=/Applications/Xcode_12.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk\", |
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.
It would be good to know whether this -isysroot ...
is really required for linking when using an Xcode with SDK >= 11.0, or whether it's better to leave it out and just assume the user uses an appropriate default Xcode version.
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.
Hello, I'll get back to you this evening (I'm in CEST) about testing this.
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.
I also get the gazillions of such warning, and I had assumed -fvisibility=hidden
would be possible. Well I trust your judgement on this. :)
|
Tested on native arm64, right? Well, I'll just try it here too with Azure on native x64, we'll see... |
Yes. |
9f3ab0b
to
5add58a
Compare
For simple cross-compilation via `-mtriple=arm64-apple-macos` as long as a suited Xcode version >= 12.0 is installed.
Specifying the sysroot is needed for Azure at least; not sure if that's because it's native x64 or because it has something like 10 installed Xcode versions. |
For simple cross-compilation via
-mtriple=arm64-apple-macos
as long as a suited Xcode version >= 12.0 (?) is installed.