Expose extra frontend options through build apk/ios/macOS (#53273)
This will allow experimenting with the remove to string transformer before we're ready to turn it on by default. This doesn't work for web yet since we use dart2js instead of the frontend_server for producing kernel
This commit is contained in:
@@ -204,7 +204,10 @@ class KernelSnapshot extends Target {
|
||||
final TargetPlatform targetPlatform = getTargetPlatformForName(environment.defines[kTargetPlatform]);
|
||||
|
||||
// This configuration is all optional.
|
||||
final List<String> extraFrontEndOptions = environment.defines[kExtraFrontEndOptions]?.split(',');
|
||||
final String rawFrontEndOption = environment.defines[kExtraFrontEndOptions];
|
||||
final List<String> extraFrontEndOptions = (rawFrontEndOption?.isNotEmpty ?? false)
|
||||
? rawFrontEndOption?.split(',')
|
||||
: null;
|
||||
final List<String> fileSystemRoots = environment.defines[kFileSystemRoots]?.split(',');
|
||||
final String fileSystemScheme = environment.defines[kFileSystemScheme];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user