• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2024 The Pigweed Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4# use this file except in compliance with the License. You may obtain a copy of
5# the License at
6#
7#     https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations under
13# the License.
14
15load(":pw_cc_toolchain_feature_is_enabled.bzl", "pw_cc_toolchain_feature_is_enabled")
16
17pw_cc_toolchain_feature_is_enabled(
18    name = "compiler_is_clang",
19    feature_name = "compiler_is_clang",
20)
21
22pw_cc_toolchain_feature_is_enabled(
23    name = "compiler_is_clang-cl",
24    feature_name = "compiler_is_clang-cl",
25)
26
27pw_cc_toolchain_feature_is_enabled(
28    name = "compiler_is_gcc",
29    feature_name = "compiler_is_gcc",
30)
31
32pw_cc_toolchain_feature_is_enabled(
33    name = "compiler_is_mingw-gcc",
34    feature_name = "compiler_is_mingw-gcc",
35)
36
37pw_cc_toolchain_feature_is_enabled(
38    name = "compiler_is_msvc-cl",
39    feature_name = "compiler_is_msvc-cl",
40)
41
42pw_cc_toolchain_feature_is_enabled(
43    name = "linker_is_clang",
44    feature_name = "linker_is_clang",
45)
46
47pw_cc_toolchain_feature_is_enabled(
48    name = "linker_is_clang-cl",
49    feature_name = "linker_is_clang-cl",
50)
51
52pw_cc_toolchain_feature_is_enabled(
53    name = "linker_is_gcc",
54    feature_name = "linker_is_gcc",
55)
56
57pw_cc_toolchain_feature_is_enabled(
58    name = "linker_is_mingw-gcc",
59    feature_name = "linker_is_mingw-gcc",
60)
61
62pw_cc_toolchain_feature_is_enabled(
63    name = "linker_is_msvc-cl",
64    feature_name = "linker_is_msvc-cl",
65)
66