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

Side by Side Diff: gn/BUILD.gn

Issue 2303933002: Include $extra_ldflags in link descriptions. (Closed)
Patch Set: Created 4 years, 3 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 | « 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 2016 Google Inc. 1 # Copyright 2016 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 declare_args() { 6 declare_args() {
7 ar = "ar" 7 ar = "ar"
8 cc = "cc" 8 cc = "cc"
9 cxx = "c++" 9 cxx = "c++"
10 10
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 if (is_mac) { 171 if (is_mac) {
172 rpath = "-Wl,-install_name,@rpath/$soname" 172 rpath = "-Wl,-install_name,@rpath/$soname"
173 } 173 }
174 174
175 command = "$compiler_prefix $cxx -shared {{ldflags}} {{inputs}} {{solibs}} { {libs}} $rpath $extra_ldflags -o {{output}}" 175 command = "$compiler_prefix $cxx -shared {{ldflags}} {{inputs}} {{solibs}} { {libs}} $rpath $extra_ldflags -o {{output}}"
176 outputs = [ 176 outputs = [
177 "{{root_out_dir}}/$soname", 177 "{{root_out_dir}}/$soname",
178 ] 178 ]
179 output_prefix = "lib" 179 output_prefix = "lib"
180 default_output_extension = ".so" 180 default_output_extension = ".so"
181 description = "$compiler_prefix $cxx -shared ... -o {{output}}" 181 description =
182 "$compiler_prefix $cxx -shared ... $extra_ldflags -o {{output}}"
182 } 183 }
183 184
184 tool("link") { 185 tool("link") {
185 command = "$compiler_prefix $cxx {{ldflags}} {{inputs}} {{solibs}} {{libs}} $extra_ldflags -o {{output}}" 186 command = "$compiler_prefix $cxx {{ldflags}} {{inputs}} {{solibs}} {{libs}} $extra_ldflags -o {{output}}"
186 outputs = [ 187 outputs = [
187 "{{root_out_dir}}/{{target_output_name}}{{output_extension}}", 188 "{{root_out_dir}}/{{target_output_name}}{{output_extension}}",
188 ] 189 ]
189 description = "$compiler_prefix $cxx ... -o {{output}}" 190 description = "$compiler_prefix $cxx ... $extra_ldflags -o {{output}}"
190 } 191 }
191 192
192 tool("stamp") { 193 tool("stamp") {
193 command = "touch {{output}}" 194 command = "touch {{output}}"
194 } 195 }
195 196
196 tool("copy") { 197 tool("copy") {
197 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" 198 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})"
198 } 199 }
199 } 200 }
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