Skip to content

Commit 56561d1

Browse files
committed
arg test
1 parent 6823576 commit 56561d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/private/rustdoc_test.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ def _build_rustdoc_flags(ctx, dep_info, crate_info, toolchain):
140140

141141
sysroot = find_sysroot(toolchain, short_path = True)
142142
if sysroot:
143-
link_search_flags.extend(["--sysroot", "${{pwd}}/{}".format(sysroot)])
144-
link_search_flags.extend(["--target", toolchain.target_flag_value])
143+
link_search_flags.append("--sysroot=${{pwd}}/{}".format(sysroot))
144+
link_search_flags.append("--target={}".format(toolchain.target_flag_value))
145145

146146
# TODO(hlopko): use the more robust logic from rustc.bzl also here, through a reasonable API.
147147
for lib_to_link in dep_info.transitive_noncrates.to_list():

0 commit comments

Comments
 (0)