mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When running tests in an Android device, the environment variables were not passed to the device, which make some test fail, like stdlib/HashingRandomization that test with and without the environment variable SWIFT_DETERMINISTIC_HASHING. The changes implement a process similar to what the iOS simulator already seem to do: a variable prefix which is pick up by the adb_test_runner.py and send to the device for the test.
Build Android Toolchain
This toolchain will generate the .so and .swiftmodule files of the Swift standard library and Foundation framework for the Android environment, armv7 architecture. Those files are needed when building any Swift library to be included in an application for Android.
To build the toolchain run:
android$ ./build-toolchain
It will be built on:
path/to/swift-source/swift-android-toolchain