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

Side by Side Diff: build/toolchain/linux/BUILD.gn

Issue 2726983004: Output a linker map file for official builds (Closed)
Patch Set: linux Created 3 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/toolchain/gcc_toolchain.gni ('k') | build/toolchain/wrapper_utils.py » ('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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 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/sysroot.gni") 5 import("//build/config/sysroot.gni")
6 import("//build/toolchain/gcc_toolchain.gni") 6 import("//build/toolchain/gcc_toolchain.gni")
7 7
8 clang_toolchain("clang_arm") { 8 clang_toolchain("clang_arm") {
9 toolprefix = "arm-linux-gnueabihf-" 9 toolprefix = "arm-linux-gnueabihf-"
10 toolchain_args = { 10 toolchain_args = {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 nm = "${toolprefix}nm" 51 nm = "${toolprefix}nm"
52 52
53 toolchain_args = { 53 toolchain_args = {
54 current_cpu = "arm" 54 current_cpu = "arm"
55 current_os = "linux" 55 current_os = "linux"
56 is_clang = false 56 is_clang = false
57 } 57 }
58 } 58 }
59 59
60 clang_toolchain("clang_x86") { 60 clang_toolchain("clang_x86") {
61 # Output linker map files for binary size analysis.
62 enable_linker_map = true
63
61 toolchain_args = { 64 toolchain_args = {
62 current_cpu = "x86" 65 current_cpu = "x86"
63 current_os = "linux" 66 current_os = "linux"
64 } 67 }
65 } 68 }
66 69
67 clang_toolchain("clang_x86_v8_arm") { 70 clang_toolchain("clang_x86_v8_arm") {
68 toolchain_args = { 71 toolchain_args = {
69 current_cpu = "x86" 72 current_cpu = "x86"
70 v8_current_cpu = "arm" 73 v8_current_cpu = "arm"
(...skipping 11 matching lines...) Expand all
82 85
83 gcc_toolchain("x86") { 86 gcc_toolchain("x86") {
84 cc = "gcc" 87 cc = "gcc"
85 cxx = "g++" 88 cxx = "g++"
86 89
87 readelf = "readelf" 90 readelf = "readelf"
88 nm = "nm" 91 nm = "nm"
89 ar = "ar" 92 ar = "ar"
90 ld = cxx 93 ld = cxx
91 94
95 # Output linker map files for binary size analysis.
96 enable_linker_map = true
97
92 toolchain_args = { 98 toolchain_args = {
93 current_cpu = "x86" 99 current_cpu = "x86"
94 current_os = "linux" 100 current_os = "linux"
95 is_clang = false 101 is_clang = false
96 } 102 }
97 } 103 }
98 104
99 clang_toolchain("clang_x64") { 105 clang_toolchain("clang_x64") {
106 # Output linker map files for binary size analysis.
107 enable_linker_map = true
108
100 toolchain_args = { 109 toolchain_args = {
101 current_cpu = "x64" 110 current_cpu = "x64"
102 current_os = "linux" 111 current_os = "linux"
103 } 112 }
104 } 113 }
105 114
106 clang_toolchain("clang_x64_v8_arm64") { 115 clang_toolchain("clang_x64_v8_arm64") {
107 toolchain_args = { 116 toolchain_args = {
108 current_cpu = "x64" 117 current_cpu = "x64"
109 v8_current_cpu = "arm64" 118 v8_current_cpu = "arm64"
(...skipping 11 matching lines...) Expand all
121 130
122 gcc_toolchain("x64") { 131 gcc_toolchain("x64") {
123 cc = "gcc" 132 cc = "gcc"
124 cxx = "g++" 133 cxx = "g++"
125 134
126 readelf = "readelf" 135 readelf = "readelf"
127 nm = "nm" 136 nm = "nm"
128 ar = "ar" 137 ar = "ar"
129 ld = cxx 138 ld = cxx
130 139
140 # Output linker map files for binary size analysis.
141 enable_linker_map = true
142
131 toolchain_args = { 143 toolchain_args = {
132 current_cpu = "x64" 144 current_cpu = "x64"
133 current_os = "linux" 145 current_os = "linux"
134 is_clang = false 146 is_clang = false
135 } 147 }
136 } 148 }
137 149
138 clang_toolchain("clang_mipsel") { 150 clang_toolchain("clang_mipsel") {
139 toolchain_args = { 151 toolchain_args = {
140 current_cpu = "mipsel" 152 current_cpu = "mipsel"
(...skipping 10 matching lines...) Expand all
151 nm = "mipsel-linux-gnu-nm" 163 nm = "mipsel-linux-gnu-nm"
152 164
153 toolchain_args = { 165 toolchain_args = {
154 cc_wrapper = "" 166 cc_wrapper = ""
155 current_cpu = "mipsel" 167 current_cpu = "mipsel"
156 current_os = "linux" 168 current_os = "linux"
157 is_clang = false 169 is_clang = false
158 use_goma = false 170 use_goma = false
159 } 171 }
160 } 172 }
OLDNEW
« no previous file with comments | « build/toolchain/gcc_toolchain.gni ('k') | build/toolchain/wrapper_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698