| 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 # This value will be inherited in the toolchain below. | 5 # This value will be inherited in the toolchain below. |
| 6 concurrent_links = exec_script("get_concurrent_links.py", [], "value") | 6 concurrent_links = exec_script("get_concurrent_links.py", [], "value") |
| 7 | 7 |
| 8 # This template defines a toolchain for something that works like gcc | 8 # This template defines a toolchain for something that works like gcc |
| 9 # (including clang). | 9 # (including clang). |
| 10 # | 10 # |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 rspfile = "$outfile.rsp" | 194 rspfile = "$outfile.rsp" |
| 195 unstripped_outfile = outfile | 195 unstripped_outfile = outfile |
| 196 | 196 |
| 197 if (defined(invoker.strip)) { | 197 if (defined(invoker.strip)) { |
| 198 unstripped_outfile = "{{root_out_dir}}/exe.unstripped/$exename" | 198 unstripped_outfile = "{{root_out_dir}}/exe.unstripped/$exename" |
| 199 } | 199 } |
| 200 | 200 |
| 201 command = "$ld {{ldflags}} -o $unstripped_outfile -Wl,--start-group @$rspf
ile {{solibs}} -Wl,--end-group $libs_section_prefix {{libs}} $libs_section_postf
ix" | 201 command = "$ld {{ldflags}} -o $unstripped_outfile -Wl,--start-group @$rspf
ile {{solibs}} -Wl,--end-group $libs_section_prefix {{libs}} $libs_section_postf
ix" |
| 202 if (defined(invoker.strip)) { | 202 if (defined(invoker.strip)) { |
| 203 strip = invoker.strip | 203 strip = invoker.strip |
| 204 strip_command = "${strip} --strip-unneeded -o $outfile $unstripped_outfi
le" | 204 strip_command = |
| 205 "${strip} --strip-unneeded -o $outfile $unstripped_outfile" |
| 205 command += " && " + strip_command | 206 command += " && " + strip_command |
| 206 } | 207 } |
| 207 if (defined(invoker.postlink)) { | 208 if (defined(invoker.postlink)) { |
| 208 command += " && " + invoker.postlink | 209 command += " && " + invoker.postlink |
| 209 } | 210 } |
| 210 description = "LINK $outfile" | 211 description = "LINK $outfile" |
| 211 rspfile_content = "{{inputs}}" | 212 rspfile_content = "{{inputs}}" |
| 212 outputs = [ | 213 outputs = [ |
| 213 outfile, | 214 outfile, |
| 214 ] | 215 ] |
| (...skipping 28 matching lines...) Expand all Loading... |
| 243 if (defined(invoker.is_clang)) { | 244 if (defined(invoker.is_clang)) { |
| 244 is_clang = invoker.is_clang | 245 is_clang = invoker.is_clang |
| 245 } | 246 } |
| 246 } | 247 } |
| 247 | 248 |
| 248 if (defined(invoker.deps)) { | 249 if (defined(invoker.deps)) { |
| 249 deps = invoker.deps | 250 deps = invoker.deps |
| 250 } | 251 } |
| 251 } | 252 } |
| 252 } | 253 } |
| OLD | NEW |