OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
8 import("//build/config/nacl/config.gni") | 8 import("//build/config/nacl/config.gni") |
9 import("//build/toolchain/cc_wrapper.gni") | 9 import("//build/toolchain/cc_wrapper.gni") |
10 | 10 |
11 if (current_cpu == "arm") { | 11 if (current_cpu == "arm" || current_cpu == "arm64") { |
12 import("//build/config/arm.gni") | 12 import("//build/config/arm.gni") |
13 } | 13 } |
14 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 14 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
15 import("//build/config/mips.gni") | 15 import("//build/config/mips.gni") |
16 } | 16 } |
17 if (is_win) { | 17 if (is_win) { |
18 import("//build/config/win/visual_studio_version.gni") | 18 import("//build/config/win/visual_studio_version.gni") |
19 } | 19 } |
20 | 20 |
21 declare_args() { | 21 declare_args() { |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 "-mstack-alignment=16", | 626 "-mstack-alignment=16", |
627 "-mstackrealign", | 627 "-mstackrealign", |
628 ] | 628 ] |
629 } | 629 } |
630 } | 630 } |
631 | 631 |
632 config("compiler_arm_fpu") { | 632 config("compiler_arm_fpu") { |
633 if (current_cpu == "arm" && !is_ios && !is_nacl) { | 633 if (current_cpu == "arm" && !is_ios && !is_nacl) { |
634 cflags = [ "-mfpu=$arm_fpu" ] | 634 cflags = [ "-mfpu=$arm_fpu" ] |
635 asmflags = cflags | 635 asmflags = cflags |
| 636 } else if (current_cpu == "arm64" && !is_ios && !is_nacl) { |
| 637 cflags = [ "-mcpu=$arm_fpu" ] |
| 638 asmflags = cflags |
636 } | 639 } |
637 } | 640 } |
638 | 641 |
639 # runtime_library ------------------------------------------------------------- | 642 # runtime_library ------------------------------------------------------------- |
640 # | 643 # |
641 # Sets the runtime library and associated options. | 644 # Sets the runtime library and associated options. |
642 # | 645 # |
643 # How do you determine what should go in here vs. "compiler" above? Consider if | 646 # How do you determine what should go in here vs. "compiler" above? Consider if |
644 # a target might choose to use a different runtime library (ignore for a moment | 647 # a target might choose to use a different runtime library (ignore for a moment |
645 # if this is possible or reasonable on your system). If such a target would want | 648 # if this is possible or reasonable on your system). If such a target would want |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1338 | 1341 |
1339 if (is_ios || is_mac) { | 1342 if (is_ios || is_mac) { |
1340 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1343 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1341 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1344 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1342 config("enable_arc") { | 1345 config("enable_arc") { |
1343 common_flags = [ "-fobjc-arc" ] | 1346 common_flags = [ "-fobjc-arc" ] |
1344 cflags_objc = common_flags | 1347 cflags_objc = common_flags |
1345 cflags_objcc = common_flags | 1348 cflags_objcc = common_flags |
1346 } | 1349 } |
1347 } | 1350 } |
OLD | NEW |