Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions absl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,23 @@ config_setting(
visibility = [":__subpackages__"],
)

config_setting(
name = "windows-clang",
constraint_values = [
"@platforms//os:windows",
],
flag_values = {
"@bazel_tools//tools/cpp:compiler": "clang",
},
visibility = [":__subpackages__"],
)

selects.config_setting_group(
name = "mingw_compiler",
match_any = [
":mingw_unspecified_compiler",
":mingw-gcc_compiler",
":windows-clang",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The seems to be a hack. In some cases hacks are fine, but there is no comment or any trace for a future reader that explains why this strange line is appearing here. Can you explain precisely what the problem is? Would renaming this group make it more clear what its purpose is?

],
visibility = [":__subpackages__"],
)