BUILD.bazel 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #
  2. # Copyright 2017 The Abseil Authors.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # https://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. package(default_visibility = ["//visibility:public"])
  16. licenses(["notice"])
  17. config_setting(
  18. name = "clang_compiler",
  19. flag_values = {
  20. "@bazel_tools//tools/cpp:compiler": "clang",
  21. },
  22. visibility = [":__subpackages__"],
  23. )
  24. config_setting(
  25. name = "msvc_compiler",
  26. flag_values = {
  27. "@bazel_tools//tools/cpp:compiler": "msvc-cl",
  28. },
  29. visibility = [":__subpackages__"],
  30. )
  31. config_setting(
  32. name = "clang-cl_compiler",
  33. flag_values = {
  34. "@bazel_tools//tools/cpp:compiler": "clang-cl",
  35. },
  36. visibility = [":__subpackages__"],
  37. )
  38. config_setting(
  39. name = "osx",
  40. constraint_values = [
  41. "@platforms//os:osx",
  42. ],
  43. )
  44. config_setting(
  45. name = "ios",
  46. constraint_values = [
  47. "@platforms//os:ios",
  48. ],
  49. )
  50. config_setting(
  51. name = "ppc",
  52. values = {
  53. "cpu": "ppc",
  54. },
  55. visibility = [":__subpackages__"],
  56. )
  57. config_setting(
  58. name = "wasm",
  59. values = {
  60. "cpu": "wasm32",
  61. },
  62. visibility = [":__subpackages__"],
  63. )
  64. config_setting(
  65. name = "fuchsia",
  66. values = {
  67. "cpu": "fuchsia",
  68. },
  69. visibility = [":__subpackages__"],
  70. )