mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Enable targetting AOTC Android builds from Mac hosts. (#3911)
This commit is contained in:
parent
cc5d1adcfc
commit
a21dedc16f
2
bin/cache/engine.version
vendored
2
bin/cache/engine.version
vendored
@ -1 +1 @@
|
||||
57edc534d69031b03409e7af37cbc492cb135086
|
||||
a1f4a12baa3dd4382e395743ff16ffbe3d188b88
|
||||
|
@ -35,9 +35,9 @@ enum HostPlatform {
|
||||
String getNameForHostPlatform(HostPlatform platform) {
|
||||
switch (platform) {
|
||||
case HostPlatform.darwin_x64:
|
||||
return "mac_debug";
|
||||
return 'darwin-x64';
|
||||
case HostPlatform.linux_x64:
|
||||
return "linux-x64";
|
||||
return 'linux-x64';
|
||||
}
|
||||
assert(false);
|
||||
}
|
||||
@ -54,17 +54,17 @@ enum TargetPlatform {
|
||||
String getNameForTargetPlatform(TargetPlatform platform) {
|
||||
switch (platform) {
|
||||
case TargetPlatform.android_arm:
|
||||
return "android-arm";
|
||||
return 'android-arm';
|
||||
case TargetPlatform.android_x64:
|
||||
return "android-x64";
|
||||
return 'android-x64';
|
||||
case TargetPlatform.android_x86:
|
||||
return "android-x86";
|
||||
return 'android-x86';
|
||||
case TargetPlatform.ios:
|
||||
return "ios_release";
|
||||
return 'ios_release';
|
||||
case TargetPlatform.darwin_x64:
|
||||
return "mac_debug";
|
||||
return 'darwin-x64';
|
||||
case TargetPlatform.linux_x64:
|
||||
return "linux-x64";
|
||||
return 'linux-x64';
|
||||
}
|
||||
assert(false);
|
||||
}
|
||||
|
@ -220,7 +220,11 @@ class FlutterEngine {
|
||||
// Return a list of (cache directory path, download URL path) tuples.
|
||||
List<List<String>> _getToolsDirs() {
|
||||
if (Platform.isMacOS)
|
||||
return <List<String>>[<String>['mac_debug', 'mac_debug/artifacts.zip']];
|
||||
return <List<String>>[
|
||||
<String>['darwin-x64', 'darwin-x64/artifacts.zip'],
|
||||
<String>['android-arm-profile/darwin-x64', 'android-arm-profile/darwin-x64.zip'],
|
||||
<String>['android-arm-release/darwin-x64', 'android-arm-release/darwin-x64.zip'],
|
||||
];
|
||||
else if (Platform.isLinux)
|
||||
return <List<String>>[
|
||||
<String>['linux-x64', 'linux-x64/artifacts.zip'],
|
||||
|
Loading…
Reference in New Issue
Block a user