| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
- # Exceptions. See /LICENSE for license information.
- # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
- load("@bazel_skylib//lib:selects.bzl", "selects")
- package(default_visibility = ["//visibility:public"])
- constraint_setting(
- name = "bootstrap_stage",
- default_constraint_value = ":stage0",
- )
- constraint_value(
- name = "stage0",
- constraint_setting = ":bootstrap_stage",
- )
- constraint_value(
- name = "stage1",
- constraint_setting = ":bootstrap_stage",
- )
- constraint_value(
- name = "stage2",
- constraint_setting = ":bootstrap_stage",
- )
- # For use by defs.bzl.
- # Matches when asan is enabled on a macOS platform.
- selects.config_setting_group(
- name = "macos_asan",
- match_all = [
- ":is_macos",
- ":macos_asan_build_modes",
- ],
- )
- # For use by defs.bzl.
- # Matches macOS platforms.
- config_setting(
- name = "is_macos",
- constraint_values = ["@platforms//os:macos"],
- )
- # For use by defs.bzl.
- # Matches build modes where asan is enabled.
- selects.config_setting_group(
- name = "macos_asan_build_modes",
- match_any = [
- ":dbg",
- ":fastbuild",
- ],
- )
- # For use by defs.bzl.
- # Matches dbg.
- config_setting(
- name = "dbg",
- values = {"compilation_mode": "dbg"},
- )
- # For use by defs.bzl.
- # Matches fastbuild.
- config_setting(
- name = "fastbuild",
- values = {"compilation_mode": "fastbuild"},
- )
- filegroup(
- name = "installed_cc_toolchain_starlark",
- srcs = [
- "carbon_cc_toolchain_config.bzl",
- "cc_toolchain_actions.bzl",
- "cc_toolchain_base_features.bzl",
- "cc_toolchain_config_features.bzl",
- "cc_toolchain_cpp_features.bzl",
- "cc_toolchain_debugging.bzl",
- "cc_toolchain_features.bzl",
- "cc_toolchain_linking.bzl",
- "cc_toolchain_modules.bzl",
- "cc_toolchain_optimization.bzl",
- "cc_toolchain_sanitizer_features.bzl",
- "cc_toolchain_tools.bzl",
- # TODO: Remove this once we can remove the use of it from Carbon
- # toolchain rules.
- "cc_toolchain_carbon_project_features.bzl",
- ],
- )
|