From 1647cb1cc1d471657a3c27d870bc2ec281751b03 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 1 Aug 2019 10:58:12 -0700 Subject: [PATCH] Use simarm_x64 when targeting arm (flutter/engine#10010) * GN changes for simarm_x64 * GN changes for simarm_x64 * Cleanup a bit * Guard simarm_x64 behind a flag * Remove flag * Remove Mac specificity --- engine/src/flutter/tools/gn | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/engine/src/flutter/tools/gn b/engine/src/flutter/tools/gn index 2dd11c4894..cd536eebf5 100755 --- a/engine/src/flutter/tools/gn +++ b/engine/src/flutter/tools/gn @@ -201,10 +201,9 @@ def to_gn_args(args): gn_args['dart_custom_version_for_pub'] = 'flutter' - # 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" + # Make sure host_cpu matches the bit width of target_cpu on x86. + if gn_args['target_cpu'] == 'x86': + gn_args['host_cpu'] = 'x86' gn_args['flutter_runtime_mode'] = runtime_mode