| 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 import("//build/toolchain/toolchain.gni") | 10 import("//build/toolchain/toolchain.gni") |
| (...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 "-mips32r6", | 561 "-mips32r6", |
| 562 "-Wa,-mips32r6", | 562 "-Wa,-mips32r6", |
| 563 ] | 563 ] |
| 564 if (is_android) { | 564 if (is_android) { |
| 565 ldflags += [ | 565 ldflags += [ |
| 566 "-mips32r6", | 566 "-mips32r6", |
| 567 "-Wl,-melf32ltsmip", | 567 "-Wl,-melf32ltsmip", |
| 568 ] | 568 ] |
| 569 } | 569 } |
| 570 } | 570 } |
| 571 if (mips_use_msa == true) { |
| 572 cflags += [ |
| 573 "-mmsa", |
| 574 "-mfp64", |
| 575 "-msched-weight", |
| 576 "-mload-store-pairs", |
| 577 ] |
| 578 } |
| 571 } else if (mips_arch_variant == "r2") { | 579 } else if (mips_arch_variant == "r2") { |
| 572 if (is_clang) { | 580 if (is_clang) { |
| 573 if (is_android) { | 581 if (is_android) { |
| 574 cflags += [ | 582 cflags += [ |
| 575 "--target=mipsel-linux-android", | 583 "--target=mipsel-linux-android", |
| 576 "-march=mipsel", | 584 "-march=mipsel", |
| 577 "-mcpu=mips32r2", | 585 "-mcpu=mips32r2", |
| 578 ] | 586 ] |
| 579 ldflags += [ "--target=mipsel-linux-android" ] | 587 ldflags += [ "--target=mipsel-linux-android" ] |
| 580 } else { | 588 } else { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 ] | 645 ] |
| 638 ldflags += [ "--target=mips64el-linux-android" ] | 646 ldflags += [ "--target=mips64el-linux-android" ] |
| 639 } | 647 } |
| 640 } else { | 648 } else { |
| 641 cflags += [ | 649 cflags += [ |
| 642 "-mips64r6", | 650 "-mips64r6", |
| 643 "-Wa,-mips64r6", | 651 "-Wa,-mips64r6", |
| 644 ] | 652 ] |
| 645 ldflags += [ "-mips64r6" ] | 653 ldflags += [ "-mips64r6" ] |
| 646 } | 654 } |
| 655 if (mips_use_msa == true) { |
| 656 cflags += [ |
| 657 "-mmsa", |
| 658 "-mfp64", |
| 659 "-msched-weight", |
| 660 "-mload-store-pairs", |
| 661 ] |
| 662 } |
| 647 } else if (mips_arch_variant == "r2") { | 663 } else if (mips_arch_variant == "r2") { |
| 648 cflags += [ | 664 cflags += [ |
| 649 "-mips64r2", | 665 "-mips64r2", |
| 650 "-Wa,-mips64r2", | 666 "-Wa,-mips64r2", |
| 651 ] | 667 ] |
| 652 ldflags += [ "-mips64r2" ] | 668 ldflags += [ "-mips64r2" ] |
| 653 } | 669 } |
| 654 } else if (current_cpu == "pnacl" && is_nacl_nonsfi) { | 670 } else if (current_cpu == "pnacl" && is_nacl_nonsfi) { |
| 655 if (target_cpu == "x86" || target_cpu == "x64") { | 671 if (target_cpu == "x86" || target_cpu == "x64") { |
| 656 cflags += [ | 672 cflags += [ |
| (...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1566 | 1582 |
| 1567 if (is_ios || is_mac) { | 1583 if (is_ios || is_mac) { |
| 1568 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1584 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1569 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1585 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1570 config("enable_arc") { | 1586 config("enable_arc") { |
| 1571 common_flags = [ "-fobjc-arc" ] | 1587 common_flags = [ "-fobjc-arc" ] |
| 1572 cflags_objc = common_flags | 1588 cflags_objc = common_flags |
| 1573 cflags_objcc = common_flags | 1589 cflags_objcc = common_flags |
| 1574 } | 1590 } |
| 1575 } | 1591 } |
| OLD | NEW |