Chromium Code Reviews| 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", ro ot_build_dir) |
|
brettw
2014/04/10 17:46:33
Can you wrap after the comma (put root_build_dir u
| |
| 147 ldflags += [ | 147 ldflags += [ |
| 148 "-B$gold_path", | 148 "-B$gold_path", |
| 149 | 149 |
| 150 # There seems to be a conflict of --icf and -pie in gold which can | 150 # There seems to be a conflict of --icf and -pie in gold which can |
| 151 # generate crashy binaries. As a security measure, -pie takes | 151 # generate crashy binaries. As a security measure, -pie takes |
| 152 # precendence for now. | 152 # precendence for now. |
| 153 # TODO(brettw) common.gypi has this only for target toolset. | 153 # TODO(brettw) common.gypi has this only for target toolset. |
| 154 #"-Wl,--icf=safe", | 154 #"-Wl,--icf=safe", |
| 155 "-Wl,--icf=none", | 155 "-Wl,--icf=none", |
| 156 | 156 |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 672 cflags = [ "-g1" ] | 672 cflags = [ "-g1" ] |
| 673 } | 673 } |
| 674 } | 674 } |
| 675 | 675 |
| 676 config("no_symbols") { | 676 config("no_symbols") { |
| 677 if (!is_win) { | 677 if (!is_win) { |
| 678 cflags = [ "-g0" ] | 678 cflags = [ "-g0" ] |
| 679 } | 679 } |
| 680 } | 680 } |
| 681 | 681 |
| OLD | NEW |