mirror of
https://github.com/dart-lang/sdk
synced 2024-07-05 09:20:04 +00:00
GN: Fix arm cross build to match gyp build
R=vegorov@google.com Review URL: https://codereview.chromium.org/2456463003 .
This commit is contained in:
parent
16e4f2f1c2
commit
1ed9dc3ac0
|
@ -22,13 +22,13 @@ if (use_goma) {
|
|||
}
|
||||
|
||||
gcc_toolchain("arm") {
|
||||
cc = "${compiler_prefix}arm-linux-gnueabi-gcc"
|
||||
cxx = "${compiler_prefix}arm-linux-gnueabi-g++"
|
||||
cc = "${compiler_prefix}arm-linux-gnueabihf-gcc"
|
||||
cxx = "${compiler_prefix}arm-linux-gnueabihf-g++"
|
||||
|
||||
ar = "arm-linux-gnueabi-ar"
|
||||
ar = "arm-linux-gnueabihf-ar"
|
||||
ld = cxx
|
||||
readelf = "arm-linux-gnueabi-readelf"
|
||||
nm = "arm-linux-gnueabi-nm"
|
||||
readelf = "arm-linux-gnueabihf-readelf"
|
||||
nm = "arm-linux-gnueabihf-nm"
|
||||
|
||||
toolchain_cpu = "arm"
|
||||
toolchain_os = "linux"
|
||||
|
|
|
@ -91,6 +91,8 @@ def to_gn_args(args, mode, arch, target_os):
|
|||
gn_args['dart_use_tcmalloc'] = (gn_args['target_os'] == 'linux'
|
||||
and not args.asan)
|
||||
|
||||
gn_args['arm_float_abi'] = 'hard'
|
||||
|
||||
gn_args['is_debug'] = mode == 'debug'
|
||||
gn_args['is_release'] = mode == 'release'
|
||||
gn_args['is_product'] = mode == 'product'
|
||||
|
|
Loading…
Reference in New Issue
Block a user