Extract shared library build from AOT snapshotting (#17166)
This commit is contained in:
@@ -12,6 +12,8 @@ import 'package:flutter_tools/src/build_info.dart';
|
||||
import 'package:flutter_tools/src/base/build.dart';
|
||||
import 'package:flutter_tools/src/base/context.dart';
|
||||
import 'package:flutter_tools/src/base/file_system.dart';
|
||||
import 'package:flutter_tools/src/base/io.dart';
|
||||
import 'package:flutter_tools/src/base/process.dart';
|
||||
import 'package:flutter_tools/src/ios/mac.dart';
|
||||
import 'package:flutter_tools/src/version.dart';
|
||||
import 'package:mockito/mockito.dart';
|
||||
@@ -646,6 +648,10 @@ void main() {
|
||||
fs.path.join(outputPath, 'snapshot.d'): '',
|
||||
};
|
||||
|
||||
final RunResult successResult = new RunResult(new ProcessResult(1, 0, '', ''));
|
||||
when(xcode.cc(any)).thenAnswer((_) => new Future<RunResult>.value(successResult));
|
||||
when(xcode.clang(any)).thenAnswer((_) => new Future<RunResult>.value(successResult));
|
||||
|
||||
final int genSnapshotExitCode = await snapshotter.build(
|
||||
platform: TargetPlatform.ios,
|
||||
buildMode: BuildMode.profile,
|
||||
@@ -688,6 +694,10 @@ void main() {
|
||||
fs.path.join(outputPath, 'snapshot.d'): '',
|
||||
};
|
||||
|
||||
final RunResult successResult = new RunResult(new ProcessResult(1, 0, '', ''));
|
||||
when(xcode.cc(any)).thenAnswer((_) => new Future<RunResult>.value(successResult));
|
||||
when(xcode.clang(any)).thenAnswer((_) => new Future<RunResult>.value(successResult));
|
||||
|
||||
final int genSnapshotExitCode = await snapshotter.build(
|
||||
platform: TargetPlatform.ios,
|
||||
buildMode: BuildMode.release,
|
||||
|
||||
Reference in New Issue
Block a user