Unverified Commit ceade39c authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Revert "Extract Xxd class for iOS AOT snapshotting (#16986)" (#17003)

This reverts commit 4bb7496b.
parent 4bb7496b
...@@ -16,7 +16,7 @@ import '../build_info.dart'; ...@@ -16,7 +16,7 @@ import '../build_info.dart';
import '../compile.dart'; import '../compile.dart';
import '../dart/package_map.dart'; import '../dart/package_map.dart';
import '../globals.dart'; import '../globals.dart';
import '../ios/mac.dart' show xcode, xxd; import '../ios/mac.dart' show xcode;
import '../resident_runner.dart'; import '../resident_runner.dart';
import '../runner/flutter_command.dart'; import '../runner/flutter_command.dart';
import 'build.dart'; import 'build.dart';
...@@ -422,14 +422,12 @@ Future<String> _buildAotSnapshot( ...@@ -422,14 +422,12 @@ Future<String> _buildAotSnapshot(
await fs.file(vmSnapshotData).rename(fs.path.join(outputDir.path, kVmSnapshotData)); await fs.file(vmSnapshotData).rename(fs.path.join(outputDir.path, kVmSnapshotData));
await fs.file(isolateSnapshotData).rename(fs.path.join(outputDir.path, kIsolateSnapshotData)); await fs.file(isolateSnapshotData).rename(fs.path.join(outputDir.path, kIsolateSnapshotData));
await xxd.run( await runCheckedAsync(<String>[
<String>['--include', kVmSnapshotData, fs.path.basename(kVmSnapshotDataC)], 'xxd', '--include', kVmSnapshotData, fs.path.basename(kVmSnapshotDataC)
workingDirectory: outputDir.path, ], workingDirectory: outputDir.path);
); await runCheckedAsync(<String>[
await xxd.run( 'xxd', '--include', kIsolateSnapshotData, fs.path.basename(kIsolateSnapshotDataC)
<String>['--include', kIsolateSnapshotData, fs.path.basename(kIsolateSnapshotDataC)], ], workingDirectory: outputDir.path);
workingDirectory: outputDir.path,
);
await xcode.cc(commonBuildOptions.toList()..addAll(<String>['-c', kVmSnapshotDataC, '-o', kVmSnapshotDataO])); await xcode.cc(commonBuildOptions.toList()..addAll(<String>['-c', kVmSnapshotDataC, '-o', kVmSnapshotDataO]));
await xcode.cc(commonBuildOptions.toList()..addAll(<String>['-c', kIsolateSnapshotDataC, '-o', kIsolateSnapshotDataO])); await xcode.cc(commonBuildOptions.toList()..addAll(<String>['-c', kIsolateSnapshotDataC, '-o', kIsolateSnapshotDataO]));
......
...@@ -39,8 +39,6 @@ IMobileDevice get iMobileDevice => context[IMobileDevice]; ...@@ -39,8 +39,6 @@ IMobileDevice get iMobileDevice => context[IMobileDevice];
Xcode get xcode => context[Xcode]; Xcode get xcode => context[Xcode];
Xxd get xxd => context[Xxd];
class PythonModule { class PythonModule {
const PythonModule(this.name); const PythonModule(this.name);
...@@ -105,12 +103,6 @@ class IMobileDevice { ...@@ -105,12 +103,6 @@ class IMobileDevice {
} }
} }
class Xxd {
Future<RunResult> run(List<String> args, {String workingDirectory}) {
return runCheckedAsync(<String>['xxd']..addAll(args), workingDirectory: workingDirectory);
}
}
class Xcode { class Xcode {
bool get isInstalledAndMeetsVersionCheck => isInstalled && isVersionSatisfactory; bool get isInstalledAndMeetsVersionCheck => isInstalled && isVersionSatisfactory;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment