Support single arch local engines for 'build macos-framework' and 'ios-framework' (#110564)

This commit is contained in:
Jenn Magder
2022-08-30 10:44:14 -07:00
committed by GitHub
parent c49531f02c
commit 5f5d4802fe
8 changed files with 85 additions and 10 deletions

View File

@@ -221,7 +221,7 @@ void _writeGeneratedFlutterConfig(
if (artifacts is LocalEngineArtifacts) {
final String engineOutPath = artifacts.engineOutPath;
environment['FLUTTER_ENGINE'] = globals.fs.path.dirname(globals.fs.path.dirname(engineOutPath));
environment['LOCAL_ENGINE'] = globals.fs.path.basename(engineOutPath);
environment['LOCAL_ENGINE'] = artifacts.localEngineName;
}
writeGeneratedCmakeConfig(Cache.flutterRoot!, windowsProject, buildInfo, environment);
}