Skip to content

Commit

Permalink
Replace outdated select() on --cpu with platform API equivalent.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 700372326
Change-Id: Ia8f82d9dc4cd32f905cb803fd3ed643f356e4b27
  • Loading branch information
Abseil Team authored and copybara-github committed Nov 26, 2024
1 parent 2fcebef commit c05bceb
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions absl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -84,25 +84,9 @@ config_setting(

config_setting(
name = "ppc",
values = {
"cpu": "ppc",
},
visibility = [":__subpackages__"],
)

config_setting(
name = "cpu_wasm",
values = {
"cpu": "wasm",
},
visibility = [":__subpackages__"],
)

config_setting(
name = "cpu_wasm32",
values = {
"cpu": "wasm32",
},
constraint_values = [
"@platforms//cpu:ppc",
],
visibility = [":__subpackages__"],
)

Expand All @@ -125,8 +109,6 @@ config_setting(
selects.config_setting_group(
name = "wasm",
match_any = [
":cpu_wasm",
":cpu_wasm32",
":platforms_wasm32",
":platforms_wasm64",
],
Expand All @@ -135,9 +117,9 @@ selects.config_setting_group(

config_setting(
name = "fuchsia",
values = {
"cpu": "fuchsia",
},
constraint_values = [
"@platforms//os:fuchsia",
],
visibility = [":__subpackages__"],
)

Expand Down

0 comments on commit c05bceb

Please sign in to comment.