diff --git a/engine/src/flutter/tools/gn b/engine/src/flutter/tools/gn index 008d20cd8d4..6616060e952 100755 --- a/engine/src/flutter/tools/gn +++ b/engine/src/flutter/tools/gn @@ -132,7 +132,7 @@ def to_gn_args(args): if 'target_cpu' in gn_args: gn_args['target_cpu'] = cpu_for_target_arch(gn_args['target_cpu']) - # Modify host_toolchain into dart_host_toolchain so it matches word size of target_cpu + # Make sure host_cpu matches the bit width of target_cpu. target_is_32_bit = gn_args['target_cpu'] == 'arm' or gn_args['target_cpu'] == 'x86' if target_is_32_bit: gn_args["host_cpu"] = "x86"