diff --git a/engine/src/flutter/tools/gn b/engine/src/flutter/tools/gn index 072a6d289b..47664dd462 100755 --- a/engine/src/flutter/tools/gn +++ b/engine/src/flutter/tools/gn @@ -559,6 +559,10 @@ def to_gn_args(args): if args.malioc_path is not None: gn_args['impeller_malioc_path'] = args.malioc_path + else: + malioc_path = os.environ.get('MALIOC_PATH') + if malioc_path: + gn_args['impeller_malioc_path'] = malioc_path # ANGLE is exclusively used for: # - Windows at runtime