Skip to content

Commit 183fd92

Browse files
authored
Replace -l: with path to library (#292)
Mirrors bazelbuild/bazel#20847 This variable isn't supported until the linked change, but if anyone hit this codepath today it wouldn't work either so it's safe to use since it just changes the error message to something else.
1 parent d87e8b0 commit 183fd92

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

crosstool/cc_toolchain_config.bzl

+1-6
Original file line numberDiff line numberDiff line change
@@ -1343,12 +1343,7 @@ please file an issue at https://github.com/bazelbuild/apple_support/issues/new
13431343
flag_group(
13441344
flag_groups = [
13451345
flag_group(
1346-
flags = ["-l:%{libraries_to_link.name}"],
1347-
expand_if_false = "libraries_to_link.is_whole_archive",
1348-
),
1349-
flag_group(
1350-
flags = ["-Wl,-force_load,-l:%{libraries_to_link.name}"],
1351-
expand_if_true = "libraries_to_link.is_whole_archive",
1346+
flags = ["%{libraries_to_link.path}"],
13521347
),
13531348
],
13541349
expand_if_equal = variable_with_value(

0 commit comments

Comments
 (0)