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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 ldflags += [ | 558 ldflags += [ |
559 "-mips32r6", | 559 "-mips32r6", |
560 "-Wl,-melf32ltsmip", | 560 "-Wl,-melf32ltsmip", |
561 ] | 561 ] |
562 } | 562 } |
563 } | 563 } |
564 if (mips_use_msa == true) { | 564 if (mips_use_msa == true) { |
565 cflags += [ | 565 cflags += [ |
566 "-mmsa", | 566 "-mmsa", |
567 "-mfp64", | 567 "-mfp64", |
568 "-msched-weight", | |
569 "-mload-store-pairs", | |
570 ] | 568 ] |
571 } | 569 } |
572 } else if (mips_arch_variant == "r2") { | 570 } else if (mips_arch_variant == "r2") { |
573 if (is_clang) { | 571 if (is_clang) { |
574 if (is_android) { | 572 if (is_android) { |
575 cflags += [ | 573 cflags += [ |
576 "--target=mipsel-linux-android", | 574 "--target=mipsel-linux-android", |
577 "-march=mipsel", | 575 "-march=mipsel", |
578 "-mcpu=mips32r2", | 576 "-mcpu=mips32r2", |
579 ] | 577 ] |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 cflags += [ | 640 cflags += [ |
643 "-mips64r6", | 641 "-mips64r6", |
644 "-Wa,-mips64r6", | 642 "-Wa,-mips64r6", |
645 ] | 643 ] |
646 ldflags += [ "-mips64r6" ] | 644 ldflags += [ "-mips64r6" ] |
647 } | 645 } |
648 if (mips_use_msa == true) { | 646 if (mips_use_msa == true) { |
649 cflags += [ | 647 cflags += [ |
650 "-mmsa", | 648 "-mmsa", |
651 "-mfp64", | 649 "-mfp64", |
652 "-msched-weight", | |
653 "-mload-store-pairs", | |
654 ] | 650 ] |
655 } | 651 } |
656 } else if (mips_arch_variant == "r2") { | 652 } else if (mips_arch_variant == "r2") { |
657 cflags += [ | 653 cflags += [ |
658 "-mips64r2", | 654 "-mips64r2", |
659 "-Wa,-mips64r2", | 655 "-Wa,-mips64r2", |
660 ] | 656 ] |
661 ldflags += [ "-mips64r2" ] | 657 ldflags += [ "-mips64r2" ] |
662 } | 658 } |
663 } else if (current_cpu == "pnacl" && is_nacl_nonsfi) { | 659 } else if (current_cpu == "pnacl" && is_nacl_nonsfi) { |
(...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1581 | 1577 |
1582 if (is_ios || is_mac) { | 1578 if (is_ios || is_mac) { |
1583 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1579 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1584 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1580 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1585 config("enable_arc") { | 1581 config("enable_arc") { |
1586 common_flags = [ "-fobjc-arc" ] | 1582 common_flags = [ "-fobjc-arc" ] |
1587 cflags_objc = common_flags | 1583 cflags_objc = common_flags |
1588 cflags_objcc = common_flags | 1584 cflags_objcc = common_flags |
1589 } | 1585 } |
1590 } | 1586 } |
OLD | NEW |