Skip to content

[android] Fix original-defined-attr test for Android 32 bits. #28542

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

Conversation

drodriguez
Copy link
Contributor

In 32 bits, the first parameter is the pointer size, so it is different
for 32 and 64 bits. Add an additional check prefix with the pointer size
and match for both pointer sizes. Works in both 32 and 64 bits targets.

Introduced in #28528 and first seen in https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android/4613/

(An alternative would be using the SDK name or similar, but I think this is a case of pointer size)

In 32 bits, the first parameter is the pointer size, so it is different
for 32 and 64 bits. Add an additional check prefix with the pointer size
and match for both pointer sizes. Works in both 32 and 64 bits targets.
Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this!

@drodriguez
Copy link
Contributor Author

Thanks for accepting!

@swift-ci please test

@DougGregor DougGregor merged commit 8cd3ddc into swiftlang:master Dec 4, 2019
@drodriguez drodriguez deleted the android-original-defined-attr-32 branch December 4, 2019 01:29
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