commit 0bf09a588b70364098b3ef98b7451164be6fc731
parent fbdd35587e5a93b3c43388a97e6d2f39a6758efa
Author: Chris Bracken <chris@bracken.jp>
Date: Fri, 26 Mar 2021 13:53:31 -0700
Add frameworks to macOS link command
The ld command on macOS was missing the {{frameworks}} value in the
command.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build/toolchain/BUILD.gn b/build/toolchain/BUILD.gn
@@ -116,7 +116,7 @@ toolchain("clang") {
unstripped_outfile = "{{root_out_dir}}/exe.unstripped/{{target_output_name}}{{output_extension}}"
}
if (target_os == "mac") {
- command = "$ld {{ldflags}} -o \"$unstripped_outfile\" -Wl,-filelist,\"$rspfile\" {{solibs}} {{libs}}"
+ command = "$ld {{ldflags}} -o \"$unstripped_outfile\" -Wl,-filelist,\"$rspfile\" {{frameworks}} {{solibs}} {{libs}}"
rspfile_content = "{{inputs_newline}}"
} else {
command = "$ld {{ldflags}} -o \"$unstripped_outfile\" -Wl,--Map=\"$unstripped_outfile.map\" -Wl,--start-group @\"$rspfile\" {{solibs}} -Wl,--end-group {{libs}}"