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

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

Issue 2001523002: GYP changes for arm64 linux build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comments related to disabling nacl and tcmalloc in GN files. Created 4 years, 6 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/config/allocator.gni ('k') | build/config/features.gni » ('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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 cflags += [ "-mthumb" ] 526 cflags += [ "-mthumb" ]
527 if (is_android && !is_clang) { 527 if (is_android && !is_clang) {
528 # Clang doesn't support this option. 528 # Clang doesn't support this option.
529 cflags += [ "-mthumb-interwork" ] 529 cflags += [ "-mthumb-interwork" ]
530 } 530 }
531 } 531 }
532 } 532 }
533 if (arm_tune != "") { 533 if (arm_tune != "") {
534 cflags += [ "-mtune=$arm_tune" ] 534 cflags += [ "-mtune=$arm_tune" ]
535 } 535 }
536 } else if (current_cpu == "arm64") {
537 if (is_clang && !is_android && !is_nacl) {
538 cflags += [ "--target=aarch64-linux-gnu" ]
539 ldflags += [ "--target=aarch64-linux-gnu" ]
540 }
536 } else if (current_cpu == "mipsel") { 541 } else if (current_cpu == "mipsel") {
537 if (is_clang) { 542 if (is_clang) {
538 # Temporarily needed due to unsupported MIPS macro instructions 543 # Temporarily needed due to unsupported MIPS macro instructions
539 # in inline asm code in third_party projects (libwebp and webrtc). 544 # in inline asm code in third_party projects (libwebp and webrtc).
540 # TODO(lmilko) Enable integrated-as. 545 # TODO(lmilko) Enable integrated-as.
541 cflags += [ "-fno-integrated-as" ] 546 cflags += [ "-fno-integrated-as" ]
542 } 547 }
543 if (mips_arch_variant == "r6") { 548 if (mips_arch_variant == "r6") {
544 if (is_clang) { 549 if (is_clang) {
545 cflags += [ 550 cflags += [
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 1469
1465 if (is_ios || is_mac) { 1470 if (is_ios || is_mac) {
1466 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1471 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1467 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1472 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1468 config("enable_arc") { 1473 config("enable_arc") {
1469 common_flags = [ "-fobjc-arc" ] 1474 common_flags = [ "-fobjc-arc" ]
1470 cflags_objc = common_flags 1475 cflags_objc = common_flags
1471 cflags_objcc = common_flags 1476 cflags_objcc = common_flags
1472 } 1477 }
1473 } 1478 }
OLDNEW
« no previous file with comments | « build/config/allocator.gni ('k') | build/config/features.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698