Skip to content

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