Skip to content

Commit 0ac402c

Browse files
fix conflict
1 parent f04eea0 commit 0ac402c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

rust/private/rustc.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2252,6 +2252,7 @@ def portable_link_flags(
22522252
use_pic,
22532253
ambiguous_libs,
22542254
get_lib_name,
2255+
for_windows = False,
22552256
for_darwin = False,
22562257
flavor_msvc = False):
22572258
"""_summary_
@@ -2261,6 +2262,7 @@ def portable_link_flags(
22612262
use_pic (_type_): _description_
22622263
ambiguous_libs (_type_): _description_
22632264
get_lib_name (_type_): _description_
2265+
for_windows (bool, optional): _description_. Defaults to False.
22642266
for_darwin (bool, optional): _description_. Defaults to False.
22652267
flavor_msvc (bool, optional): _description_. Defaults to False.
22662268
@@ -2353,7 +2355,7 @@ def _make_link_flags_windows(make_link_flags_args, flavor_msvc, use_direct_drive
23532355
])
23542356
elif include_link_flags:
23552357
get_lib_name = get_lib_name_for_windows if flavor_msvc else get_lib_name_default
2356-
ret.extend(portable_link_flags(lib, use_pic, ambiguous_libs, get_lib_name, flavor_msvc = flavor_msvc))
2358+
ret.extend(portable_link_flags(lib, use_pic, ambiguous_libs, get_lib_name, for_windows = True, flavor_msvc = flavor_msvc))
23572359

23582360
# Windows toolchains can inherit POSIX defaults like -pthread from C deps,
23592361
# which fails to link with the MinGW/LLD toolchain. Drop them here.

0 commit comments

Comments
 (0)