diff options
Diffstat (limited to 'gn/toolchain')
-rw-r--r-- | gn/toolchain/BUILD.gn | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gn/toolchain/BUILD.gn b/gn/toolchain/BUILD.gn index 76de226530..4cfd886fcf 100644 --- a/gn/toolchain/BUILD.gn +++ b/gn/toolchain/BUILD.gn @@ -251,7 +251,9 @@ template("gcc_like_toolchain") { rpath = "-Wl,-install_name,@rpath/$soname" } - command = "$cc_wrapper $cxx -shared {{ldflags}} {{inputs}} {{solibs}} {{libs}} $rpath -o {{output}}" + rspfile = "{{output}}.rsp" + rspfile_content = "{{inputs}}" + command = "$cc_wrapper $cxx -shared {{ldflags}} @$rspfile {{solibs}} {{libs}} $rpath -o {{output}}" outputs = [ "{{root_out_dir}}/$soname", ] @@ -261,7 +263,9 @@ template("gcc_like_toolchain") { } tool("link") { - command = "$cc_wrapper $cxx {{ldflags}} {{inputs}} {{solibs}} {{libs}} -o {{output}}" + rspfile = "{{output}}.rsp" + rspfile_content = "{{inputs}}" + command = "$cc_wrapper $cxx {{ldflags}} @$rspfile {{solibs}} {{libs}} -o {{output}}" outputs = [ "{{root_out_dir}}/{{target_output_name}}{{output_extension}}", ] |