Skip to content

Commit

Permalink
[6.3.1] Advertise CcInfo from cc_import (#19086)
Browse files Browse the repository at this point in the history
* Advertise CcInfo from cc_import

Fixes #19056

* Update BUILD.builtin_test
  • Loading branch information
oquenchil authored Jul 26, 2023
1 parent bac4393 commit 2e3c5d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/main/starlark/builtins_bzl/common/cc/cc_import.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ cc_import = rule(
),
"_cc_toolchain": attr.label(default = "@" + semantics.get_repo() + "//tools/cpp:current_cc_toolchain"),
},
provides = [CcInfo],
toolchains = cc_helper.use_cpp_toolchain(),
fragments = ["cpp"],
incompatible_use_toolchain_transition = True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,12 +405,10 @@ paths_test(
name = "path_matching_test",
)

cc_library(
cc_import(
name = "prebuilt",
hdrs = ["direct_so_file_cc_lib.h"],
srcs = [
":just_main_output",
],
shared_library = ":just_main_output",
)

filegroup(
Expand Down

0 comments on commit 2e3c5d0

Please sign in to comment.