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

[android] Fix test setup for Android to avoid using -sdk. #26366

Merged
merged 1 commit into from
Jul 26, 2019

Conversation

drodriguez
Copy link
Contributor

The recently introduced changes to make the -sdk also the resource
directory broke the tests in Android, since -sdk was being used because
it is passed as --sysroot to child invocations, which was convinient.

This commit removes those usages in the test suite, and switches to use
--sysroot for the compiler and the linker. Even if in Android only the
linker bit is necessary (since the NDK headers are somewhere different,
and are passed as -I parameters to Swift).

This should remove all the failing test in Android ARMv7 and AArch64 CI machines.

The recently introduced changes to make the -sdk also the resource
directory broke the tests in Android, since -sdk was being used because
it is passed as --sysroot to child invocations, which was convinient.

This commit removes those usages in the test suite, and switches to use
--sysroot for the compiler and the linker. Even if in Android only the
linker bit is necessary (since the NDK headers are somewhere different,
and are passed as -I parameters to Swift).
@drodriguez drodriguez requested a review from compnerd July 26, 2019 00:39
@drodriguez
Copy link
Contributor Author

@swift-ci please smoke test

@drodriguez drodriguez merged commit 11beeb7 into swiftlang:master Jul 26, 2019
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