Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 2242893002: [MIPS] Adding NaCl/PNaCl support for mipsel to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | build/toolchain/nacl/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 } 528 }
529 } 529 }
530 if (arm_tune != "") { 530 if (arm_tune != "") {
531 cflags += [ "-mtune=$arm_tune" ] 531 cflags += [ "-mtune=$arm_tune" ]
532 } 532 }
533 } else if (current_cpu == "arm64") { 533 } else if (current_cpu == "arm64") {
534 if (is_clang && !is_android && !is_nacl) { 534 if (is_clang && !is_android && !is_nacl) {
535 cflags += [ "--target=aarch64-linux-gnu" ] 535 cflags += [ "--target=aarch64-linux-gnu" ]
536 ldflags += [ "--target=aarch64-linux-gnu" ] 536 ldflags += [ "--target=aarch64-linux-gnu" ]
537 } 537 }
538 } else if (current_cpu == "mipsel") { 538 } else if (current_cpu == "mipsel" && !is_nacl) {
brettw 2016/08/12 19:52:40 This nacl check doesn't make immediate sense to me
lmilko 2016/08/15 14:56:10 mipsel-nacl-clang compiler does not need any of th
539 if (is_clang) { 539 if (is_clang) {
540 # Temporarily needed due to unsupported MIPS macro instructions 540 # Temporarily needed due to unsupported MIPS macro instructions
541 # in inline asm code in third_party projects (libwebp and webrtc). 541 # in inline asm code in third_party projects (libwebp and webrtc).
542 # TODO(lmilko) Enable integrated-as. 542 # TODO(lmilko) Enable integrated-as.
543 cflags += [ "-fno-integrated-as" ] 543 cflags += [ "-fno-integrated-as" ]
544 } 544 }
545 if (mips_arch_variant == "r6") { 545 if (mips_arch_variant == "r6") {
546 if (is_clang) { 546 if (is_clang) {
547 cflags += [ 547 cflags += [
548 "--target=mipsel-linux-gnu", 548 "--target=mipsel-linux-gnu",
(...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 1562
1563 if (is_ios || is_mac) { 1563 if (is_ios || is_mac) {
1564 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1564 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1565 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1565 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1566 config("enable_arc") { 1566 config("enable_arc") {
1567 common_flags = [ "-fobjc-arc" ] 1567 common_flags = [ "-fobjc-arc" ]
1568 cflags_objc = common_flags 1568 cflags_objc = common_flags
1569 cflags_objcc = common_flags 1569 cflags_objcc = common_flags
1570 } 1570 }
1571 } 1571 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | build/toolchain/nacl/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698