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

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

Issue 1017273002: Remove old references to cpu_arch, os from GN files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to #322476 Created 5 years, 9 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/BUILDCONFIG.gn ('k') | build/toolchain/gcc_toolchain.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 if (current_cpu == "arm") { 6 if (current_cpu == "arm") {
7 import("//build/config/arm.gni") 7 import("//build/config/arm.gni")
8 } 8 }
9 if (current_cpu == "mipsel" || current_cpu == "mips64el") { 9 if (current_cpu == "mipsel" || current_cpu == "mips64el") {
10 import("//build/config/mips.gni") 10 import("//build/config/mips.gni")
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 } 566 }
567 567
568 defines += [ 568 defines += [
569 "USE_STLPORT=1", 569 "USE_STLPORT=1",
570 "_STLP_USE_PTR_SPECIALIZATIONS=1", 570 "_STLP_USE_PTR_SPECIALIZATIONS=1",
571 "__GNU_SOURCE=1", # Necessary for clone(). 571 "__GNU_SOURCE=1", # Necessary for clone().
572 ] 572 ]
573 573
574 # TODO(jdduke) Re-enable on mips after resolving linking 574 # TODO(jdduke) Re-enable on mips after resolving linking
575 # issues with libc++ (crbug.com/456380). 575 # issues with libc++ (crbug.com/456380).
576 if (cpu_arch != "mipsel" && cpu_arch != "mips64el") { 576 if (current_cpu != "mipsel" && current_cpu != "mips64el") {
577 ldflags += [ "-Wl,--warn-shared-textrel" ] 577 ldflags += [ "-Wl,--warn-shared-textrel" ]
578 } 578 }
579 ldflags += [ "-nostdlib" ] 579 ldflags += [ "-nostdlib" ]
580 580
581 # NOTE: The stlport header include paths below are specified in cflags 581 # NOTE: The stlport header include paths below are specified in cflags
582 # rather than include_dirs because they need to come after include_dirs. 582 # rather than include_dirs because they need to come after include_dirs.
583 # Think of them like system headers, but don't use '-isystem' because the 583 # Think of them like system headers, but don't use '-isystem' because the
584 # arm-linux-androideabi-4.4.3 toolchain (circa Gingerbread) will exhibit 584 # arm-linux-androideabi-4.4.3 toolchain (circa Gingerbread) will exhibit
585 # strange errors. The include ordering here is important; change with 585 # strange errors. The include ordering here is important; change with
586 # caution. 586 # caution.
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 ] 976 ]
977 common_optimize_on_ldflags = [] 977 common_optimize_on_ldflags = []
978 978
979 if (is_android) { 979 if (is_android) {
980 if (!using_sanitizer) { 980 if (!using_sanitizer) {
981 common_optimize_on_cflags += [ "-fomit-frame-pointer" ] 981 common_optimize_on_cflags += [ "-fomit-frame-pointer" ]
982 } 982 }
983 983
984 # TODO(jdduke) Re-enable on mips after resolving linking 984 # TODO(jdduke) Re-enable on mips after resolving linking
985 # issues with libc++ (crbug.com/456380). 985 # issues with libc++ (crbug.com/456380).
986 if (cpu_arch != "mipsel" && cpu_arch != "mips64el") { 986 if (current_cpu != "mipsel" && current_cpu != "mips64el") {
987 common_optimize_on_ldflags += [ 987 common_optimize_on_ldflags += [
988 # Warn in case of text relocations. 988 # Warn in case of text relocations.
989 "-Wl,--warn-shared-textrel", 989 "-Wl,--warn-shared-textrel",
990 ] 990 ]
991 } 991 }
992 } 992 }
993 993
994 if (is_mac) { 994 if (is_mac) {
995 if (symbol_level == 2) { 995 if (symbol_level == 2) {
996 # Mac dead code stripping requires symbols. 996 # Mac dead code stripping requires symbols.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 cflags += [ "-gsplit-dwarf" ] 1110 cflags += [ "-gsplit-dwarf" ]
1111 } 1111 }
1112 } 1112 }
1113 } 1113 }
1114 1114
1115 config("no_symbols") { 1115 config("no_symbols") {
1116 if (!is_win) { 1116 if (!is_win) {
1117 cflags = [ "-g0" ] 1117 cflags = [ "-g0" ]
1118 } 1118 }
1119 } 1119 }
OLDNEW
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | build/toolchain/gcc_toolchain.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698