BUILD 754 B

1234567891011121314151617181920212223242526272829303132
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. load("@bazel_skylib//lib:selects.bzl", "selects")
  5. exports_files(["env.bzl"])
  6. selects.config_setting_group(
  7. name = "macos_asan",
  8. match_all = [":is_macos", ":macos_asan_build_modes"],
  9. )
  10. config_setting(
  11. name = "is_macos",
  12. constraint_values = ["@platforms//os:osx"],
  13. )
  14. selects.config_setting_group(
  15. name = "macos_asan_build_modes",
  16. match_any = [":dbg", ":fastbuild"],
  17. )
  18. config_setting(
  19. name = "dbg",
  20. values = {"compilation_mode": "dbg"},
  21. )
  22. config_setting(
  23. name = "fastbuild",
  24. values = {"compilation_mode": "fastbuild"},
  25. )