Make --build-shared-library more robust. (#17420)

* Search for a suitable ARM sysroot instead of hardcoding it;
* Add facility to explain why NDK was not found;
This commit is contained in:
Vyacheslav Egorov
2018-05-14 16:36:54 +02:00
committed by GitHub
parent f9bb4289e9
commit 4931b46772
6 changed files with 144 additions and 71 deletions

View File

@@ -659,7 +659,7 @@ void main() {
testUsingContext('returns failure if buildSharedLibrary is true but no NDK is found', () async {
final String outputPath = fs.path.join('build', 'foo');
when(mockAndroidSdk.ndkCompiler).thenReturn(null);
when(mockAndroidSdk.ndk).thenReturn(null);
final int genSnapshotExitCode = await snapshotter.build(
platform: TargetPlatform.android_arm,