| Index: tools/gn.py
|
| diff --git a/tools/gn.py b/tools/gn.py
|
| index 0a385f3ce87334444b23abb86be9bfde683358f3..2ff3bc27f333d4989ef172e19693bda1d2b37eca 100755
|
| --- a/tools/gn.py
|
| +++ b/tools/gn.py
|
| @@ -87,8 +87,14 @@ def to_gn_args(args, mode, arch, target_os):
|
| gn_args['dart_use_tcmalloc'] = (gn_args['target_os'] == 'linux'
|
| and not args.asan)
|
|
|
| - if gn_args['target_cpu'].startswith('arm'):
|
| + # Force -mfloat-abi=hard and -mfpu=neon on Linux as we're specifying
|
| + # a gnueabihf compiler in //build/toolchain/linux BUILD.gn.
|
| + # TODO(zra): This will likely need some adjustment to build for armv6 etc.
|
| + hard_float = (gn_args['target_cpu'].startswith('arm') and
|
| + gn_args['target_os'] == 'linux')
|
| + if hard_float:
|
| gn_args['arm_float_abi'] = 'hard'
|
| + gn_args['arm_use_neon'] = True
|
|
|
| gn_args['is_debug'] = mode == 'debug'
|
| gn_args['is_release'] = mode == 'release'
|
|
|