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 if (cpu_arch == "arm") { | 6 if (cpu_arch == "arm") { |
7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
8 } | 8 } |
9 | 9 |
10 # compiler --------------------------------------------------------------------- | 10 # compiler --------------------------------------------------------------------- |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 "-fPIC", | 136 "-fPIC", |
137 "-pipe", # Use pipes for communicating between sub-processes. Faster. | 137 "-pipe", # Use pipes for communicating between sub-processes. Faster. |
138 ] | 138 ] |
139 if (!is_android) { | 139 if (!is_android) { |
140 cflags += [ "-pthread" ] | 140 cflags += [ "-pthread" ] |
141 } | 141 } |
142 | 142 |
143 if (cpu_arch == "x64") { | 143 if (cpu_arch == "x64") { |
144 # Use gold for linking on 64-bit Linux only (on 32-bit it runs out of | 144 # Use gold for linking on 64-bit Linux only (on 32-bit it runs out of |
145 # address space, and it doesn't support cross-compiling). | 145 # address space, and it doesn't support cross-compiling). |
146 gold_path = rebase_path("//third_party/gold", root_build_dir) | 146 gold_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin", |
| 147 root_build_dir) |
147 ldflags += [ | 148 ldflags += [ |
148 "-B$gold_path", | 149 "-B$gold_path", |
149 | 150 |
150 # There seems to be a conflict of --icf and -pie in gold which can | 151 # There seems to be a conflict of --icf and -pie in gold which can |
151 # generate crashy binaries. As a security measure, -pie takes | 152 # generate crashy binaries. As a security measure, -pie takes |
152 # precendence for now. | 153 # precendence for now. |
153 # TODO(brettw) common.gypi has this only for target toolset. | 154 # TODO(brettw) common.gypi has this only for target toolset. |
154 #"-Wl,--icf=safe", | 155 #"-Wl,--icf=safe", |
155 "-Wl,--icf=none", | 156 "-Wl,--icf=none", |
156 | 157 |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 cflags = [ "-g1" ] | 673 cflags = [ "-g1" ] |
673 } | 674 } |
674 } | 675 } |
675 | 676 |
676 config("no_symbols") { | 677 config("no_symbols") { |
677 if (!is_win) { | 678 if (!is_win) { |
678 cflags = [ "-g0" ] | 679 cflags = [ "-g0" ] |
679 } | 680 } |
680 } | 681 } |
681 | 682 |
OLD | NEW |