Skip to content

Commit

Permalink
Replace -l: with path to library
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
keith committed Jan 11, 2024
1 parent d87e8b0 commit 73d6a70
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crosstool/cc_toolchain_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1343,12 +1343,7 @@ please file an issue at https://github.com/bazelbuild/apple_support/issues/new
flag_group(
flag_groups = [
flag_group(
flags = ["-l:%{libraries_to_link.name}"],
expand_if_false = "libraries_to_link.is_whole_archive",
),
flag_group(
flags = ["-Wl,-force_load,-l:%{libraries_to_link.name}"],
expand_if_true = "libraries_to_link.is_whole_archive",
flags = ["%{libraries_to_link.path}"],
),
],
expand_if_equal = variable_with_value(
Expand Down

0 comments on commit 73d6a70

Please sign in to comment.