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

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

Issue 137303002: Fix Glib flag in GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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/sysroot.gni") 6 import("//build/config/sysroot.gni")
7 7
8 # compiler --------------------------------------------------------------------- 8 # compiler ---------------------------------------------------------------------
9 # 9 #
10 # Base compiler configuration. 10 # Base compiler configuration.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 "-pipe", # Use pipes for communicating between sub-processes. Faster. 124 "-pipe", # Use pipes for communicating between sub-processes. Faster.
125 ] 125 ]
126 if (!is_android) { 126 if (!is_android) {
127 cflags += [ "-pthread" ] 127 cflags += [ "-pthread" ]
128 } 128 }
129 129
130 if (cpu_arch == "x64") { 130 if (cpu_arch == "x64") {
131 # Enable libstdc++ debugging facilities to help catch problems early, see 131 # Enable libstdc++ debugging facilities to help catch problems early, see
132 # http://crbug.com/65151 . 132 # http://crbug.com/65151 .
133 # TODO(phajdan.jr): Should we enable this for all of POSIX? 133 # TODO(phajdan.jr): Should we enable this for all of POSIX?
134 defines += [ "__GLIBCXX_DEBUG=1" ] 134 defines += [ "_GLIBCXX_DEBUG=1" ]
135 135
136 # Use gold for linking on 64-bit Linux only (on 32-bit it runs out of 136 # Use gold for linking on 64-bit Linux only (on 32-bit it runs out of
137 # address space, and it doesn't support cross-compiling). 137 # address space, and it doesn't support cross-compiling).
138 gold_path = rebase_path("//third_party/gold", ".", root_build_dir) 138 gold_path = rebase_path("//third_party/gold", ".", root_build_dir)
139 ldflags += [ 139 ldflags += [
140 "-B$gold_path", 140 "-B$gold_path",
141 141
142 # There seems to be a conflict of --icf and -pie in gold which can 142 # There seems to be a conflict of --icf and -pie in gold which can
143 # generate crashy binaries. As a security measure, -pie takes 143 # generate crashy binaries. As a security measure, -pie takes
144 # precendence for now. 144 # precendence for now.
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 } else { 617 } else {
618 cflags = [ "-g1" ] 618 cflags = [ "-g1" ]
619 } 619 }
620 } 620 }
621 621
622 config("no_symbols") { 622 config("no_symbols") {
623 if (!is_win) { 623 if (!is_win) {
624 cflags = [ "-g0" ] 624 cflags = [ "-g0" ]
625 } 625 }
626 } 626 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698