Exclude ARM from macOS builds (#72748)

This commit is contained in:
Jenn Magder
2020-12-21 16:05:24 -08:00
committed by GitHub
parent f2536da16f
commit 7aacff2216
5 changed files with 12 additions and 3 deletions

View File

@@ -97,7 +97,6 @@ void main() {
else
'-quiet',
'COMPILER_INDEX_STORE_ENABLE=NO',
'EXCLUDED_ARCHS=arm64',
],
stdout: 'STDOUT STUFF',
onRun: () {
@@ -265,6 +264,7 @@ void main() {
'TREE_SHAKE_ICONS=true',
'FLUTTER_TARGET=lib/other.dart',
'BUNDLE_SKSL_PATH=foo/bar.sksl.json',
'EXCLUDED_ARCHS=arm64',
]));
}, overrides: <Type, Generator>{
FileSystem: () => fileSystem,

View File

@@ -41,7 +41,10 @@ void main() {
// Config is updated if command succeeded.
expect(generatedConfig, exists);
expect(generatedConfig.readAsStringSync(), contains('DART_OBFUSCATION=true'));
expect(generatedConfig.readAsStringSync(), allOf(
contains('DART_OBFUSCATION=true'),
isNot(contains('EXCLUDED_ARCHS')),
));
// file that only exists if app was fully built.
final File frameworkPlist = fileSystem.file(