diff options
author | Abseil Team <absl-team@google.com> | 2023-02-28 10:32:47 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-02-28 10:34:04 -0800 |
commit | cd43bea7779641790763f983f92683882749c647 (patch) | |
tree | 3a0bffc74c29afc520e2841f0653b398457f9c65 /absl/BUILD.bazel | |
parent | 0c1114c4fb83c844c7fd74708338cca1d3d9b0dc (diff) |
Fix //absl/{base,debugging:symbolize} build with Mingw
PiperOrigin-RevId: 512974770
Change-Id: If7a8128996d2a73ac566faaa676ddd3858d51af6
Diffstat (limited to 'absl/BUILD.bazel')
-rw-r--r-- | absl/BUILD.bazel | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/absl/BUILD.bazel b/absl/BUILD.bazel index 69bdbf14..b2300ba9 100644 --- a/absl/BUILD.bazel +++ b/absl/BUILD.bazel @@ -36,7 +36,7 @@ config_setting( ) config_setting( - name = "mingw_compiler", + name = "mingw_unspecified_compiler", flag_values = { "@bazel_tools//tools/cpp:compiler": "mingw", }, @@ -44,6 +44,14 @@ config_setting( ) config_setting( + name = "mingw-gcc_compiler", + flag_values = { + "@bazel_tools//tools/cpp:compiler": "mingw-gcc", + }, + visibility = [":__subpackages__"], +) + +config_setting( name = "msvc_compiler", flag_values = { "@bazel_tools//tools/cpp:compiler": "msvc-cl", @@ -131,3 +139,12 @@ config_setting( }, visibility = [":__subpackages__"], ) + +selects.config_setting_group( + name = "mingw_compiler", + match_any = [ + ":mingw_unspecified_compiler", + ":mingw-gcc_compiler", + ], + visibility = [":__subpackages__"], +) |