BUILD.bazel 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. # http://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. #
  16. package(default_visibility = ["//visibility:public"])
  17. licenses(["notice"]) # Apache 2.0
  18. config_setting(
  19. name = "llvm_compiler",
  20. values = {
  21. "compiler": "llvm",
  22. },
  23. )
  24. config_setting(
  25. name = "hybrid_compiler",
  26. values = {
  27. "compiler": "hybrid",
  28. },
  29. )
  30. config_setting(
  31. name = "llvm_warnings",
  32. values = {
  33. "define": "ABSL_LLVM_WARNINGS=1",
  34. },
  35. )
  36. # following configs are based on mapping defined in: https://git.io/v5Ijz
  37. config_setting(
  38. name = "ios",
  39. values = {
  40. "cpu": "darwin",
  41. },
  42. )
  43. config_setting(
  44. name = "windows",
  45. values = {
  46. "cpu": "x64_windows_msvc",
  47. },
  48. )
  49. config_setting(
  50. name = "ppc",
  51. values = {
  52. "cpu": "ppc",
  53. },
  54. )