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/chromecast_build.gni") | 7 import("//build/config/chromecast_build.gni") |
8 import("//build/config/compiler/compiler.gni") | 8 import("//build/config/compiler/compiler.gni") |
9 import("//build/config/nacl/config.gni") | 9 import("//build/config/nacl/config.gni") |
10 import("//build/config/sanitizers/sanitizers.gni") | 10 import("//build/config/sanitizers/sanitizers.gni") |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 } | 542 } |
543 if (arm_tune != "") { | 543 if (arm_tune != "") { |
544 cflags += [ "-mtune=$arm_tune" ] | 544 cflags += [ "-mtune=$arm_tune" ] |
545 } | 545 } |
546 } else if (current_cpu == "arm64") { | 546 } else if (current_cpu == "arm64") { |
547 if (is_clang && !is_android && !is_nacl) { | 547 if (is_clang && !is_android && !is_nacl) { |
548 cflags += [ "--target=aarch64-linux-gnu" ] | 548 cflags += [ "--target=aarch64-linux-gnu" ] |
549 ldflags += [ "--target=aarch64-linux-gnu" ] | 549 ldflags += [ "--target=aarch64-linux-gnu" ] |
550 } | 550 } |
551 } else if (current_cpu == "mipsel" && !is_nacl) { | 551 } else if (current_cpu == "mipsel" && !is_nacl) { |
552 if (is_clang) { | |
553 # Temporarily needed due to unsupported MIPS macro instructions | |
554 # in inline asm code in third_party projects (libwebp and webrtc). | |
555 # TODO(lmilko) Enable integrated-as. | |
556 cflags += [ "-fno-integrated-as" ] | |
557 } | |
558 if (mips_arch_variant == "r6") { | 552 if (mips_arch_variant == "r6") { |
559 if (is_clang) { | 553 if (is_clang) { |
560 cflags += [ | 554 cflags += [ |
561 "--target=mipsel-linux-gnu", | 555 "--target=mipsel-linux-gnu", |
562 "-march=mips32r6", | 556 "-march=mips32r6", |
563 ] | 557 ] |
564 ldflags += [ "--target=mipsel-linux-gnu" ] | 558 ldflags += [ "--target=mipsel-linux-gnu" ] |
565 } else { | 559 } else { |
566 cflags += [ | 560 cflags += [ |
567 "-mips32r6", | 561 "-mips32r6", |
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1634 | 1628 |
1635 if (is_ios || is_mac) { | 1629 if (is_ios || is_mac) { |
1636 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1630 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1637 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1631 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1638 config("enable_arc") { | 1632 config("enable_arc") { |
1639 common_flags = [ "-fobjc-arc" ] | 1633 common_flags = [ "-fobjc-arc" ] |
1640 cflags_objc = common_flags | 1634 cflags_objc = common_flags |
1641 cflags_objcc = common_flags | 1635 cflags_objcc = common_flags |
1642 } | 1636 } |
1643 } | 1637 } |
OLD | NEW |