Skip to content

[android] Remove dependency from SwiftShims to Libc #26079

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

Merged
merged 1 commit into from
Jul 11, 2019

Conversation

drodriguez
Copy link
Contributor

Seems that SwiftShims cannot import some system headers (checked by a
test in test/ParseableInterface/ModuleCache/SystemDependencies). So
adding <android/api-level.h> is not going to work.

The change reproduces the only piece necessary from the header, which is
interpreting that if no ANDROID_API is defined, the level should be
the maximum allowed.

Seems that SwiftShims cannot import some system headers (checked by a
test in test/ParseableInterface/ModuleCache/SystemDependencies). So
adding <android/api-level.h> is not going to work.

The change reproduces the only piece necessary from the header, which is
interpreting that if no __ANDROID_API__ is defined, the level should be
the maximum allowed.
@drodriguez drodriguez requested a review from compnerd July 10, 2019 23:39
@drodriguez
Copy link
Contributor Author

@swift-ci please smoke test

@drodriguez drodriguez merged commit 82b4fe7 into swiftlang:master Jul 11, 2019
@drodriguez drodriguez deleted the android-fix-cxx-interop-3 branch July 11, 2019 16:38
@jrose-apple
Copy link
Contributor

Yes, SwiftShims can't import libc things because it makes cycles with the Glibc overlay later on.

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.

3 participants