Skip to content

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

Merged
drodriguez merged 1 commit intoswiftlang:masterfrom
drodriguez:android-fix-sdk-usage
Jul 26, 2019
Merged

[android] Fix test setup for Android to avoid using -sdk.#26366
drodriguez merged 1 commit intoswiftlang:masterfrom
drodriguez:android-fix-sdk-usage

Conversation

@drodriguez
Copy link
Copy Markdown
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
Copy Markdown
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