Skip to content
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

Fix the build for newer Xcodes #75902

Closed
wants to merge 5 commits into from
Closed

Conversation

al45tair
Copy link
Contributor

Fixes some build problems we're seeing with newer Xcodes.

This probably shouldn't be merged as-is because (among other things) the lgamma_r() function needs somehow to be conditionally declared in LibcShims.h depending on whether or not it's in math.h, which is something this doesn't really attempt to fix (I just removed it completely).

Additionally, I don't know what the impact of removing embedded-darwin might be outside of fixing the build.

We should allow situations where one of the pair being zippered is
arm64e and the other is aarch64; provided the actual code is arm64e,
this should work just fine.
These belong in `<math.h>` and declaring them in the shims causes
modularisation problems.
The Darwin module is part of the SDK and shouldn't be duplicated in the
Swift repo; doing so is causing modularisation issues.
The Darwin module is part of the SDK, and having a separate variant
of it causes modularisation issues.  It might be desirable to reinstate
this, but doing so will require that we resolve some issues.
…tforms.

We need the OSS version of the compiler to cope with `@_originallyDefinedIn`
from SDKs that might feature platform names that it doesn't understand.  At
the very least, it shouldn't emit a confusing diagnostic claiming that they
are missing when they are not.
@al45tair
Copy link
Contributor Author

@swift-ci Please test

@tshortli
Copy link
Contributor

The @_originallyDefinedIn and @backDeployed parsing changes LGTM, though both require updates to the test suites to remove expectations for the spurious errors.

@al45tair
Copy link
Contributor Author

All of this should be fixed now.

@al45tair al45tair closed this Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants