Index: build/toolchain/mac/BUILD.gn |
diff --git a/build/toolchain/mac/BUILD.gn b/build/toolchain/mac/BUILD.gn |
index 65fb7c661b198b6eeda1b55f1fde59f51be6e202..b1cd36bef4a7177e56e7f798dfc430206fcd796e 100644 |
--- a/build/toolchain/mac/BUILD.gn |
+++ b/build/toolchain/mac/BUILD.gn |
@@ -117,7 +117,7 @@ template("mac_clang_toolchain") { |
} |
tool("solink") { |
- dylib = "{{target_output_name}}{{output_extension}}" # eg "libfoo.dylib" |
+ dylib = "{{root_out_dir}}/{{target_output_name}}{{output_extension}}" # eg "./libfoo.dylib" |
rspfile = dylib + ".rsp" |
# These variables are not build into GN but are helpers that implement |
@@ -165,7 +165,7 @@ template("mac_clang_toolchain") { |
} |
tool("link") { |
- outfile = "{{target_output_name}}{{output_extension}}" |
+ outfile = "{{root_out_dir}}/{{target_output_name}}{{output_extension}}" |
rspfile = "$outfile.rsp" |
command = "$ld {{ldflags}} -o $outfile -Wl,-filelist,$rspfile {{solibs}} {{libs}}" |
description = "LINK $outfile" |