xref: /aosp_15_r20/external/pigweed/pw_toolchain_bazel/features/well_known/BUILD.bazel (revision 61c4878ac05f98d0ceed94b57d316916de578985)
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("//cc_toolchain:defs.bzl", "pw_cc_unsafe_feature")
16
17# See https://bazel.build/docs/cc-toolchain-config-reference#wellknown-features
18package(default_visibility = ["//visibility:public"])
19
20pw_cc_unsafe_feature(
21    name = "opt",
22    builtin = True,
23    feature_name = "opt",
24)
25
26pw_cc_unsafe_feature(
27    name = "dbg",
28    builtin = True,
29    feature_name = "dbg",
30)
31
32pw_cc_unsafe_feature(
33    name = "fastbuild",
34    builtin = True,
35    feature_name = "fastbuild",
36)
37
38pw_cc_unsafe_feature(
39    name = "static_linking_mode",
40    builtin = True,
41    feature_name = "static_linking_mode",
42)
43
44pw_cc_unsafe_feature(
45    name = "dynamic_linking_mode",
46    builtin = True,
47    feature_name = "dynamic_linking_mode",
48)
49
50pw_cc_unsafe_feature(
51    name = "per_object_debug_info",
52    builtin = True,
53    feature_name = "per_object_debug_info",
54)
55
56pw_cc_unsafe_feature(
57    name = "supports_start_end_lib",
58    builtin = True,
59    feature_name = "supports_start_end_lib",
60)
61
62pw_cc_unsafe_feature(
63    name = "supports_interface_shared_libraries",
64    builtin = True,
65    feature_name = "supports_interface_shared_libraries",
66)
67
68pw_cc_unsafe_feature(
69    name = "supports_dynamic_linker",
70    builtin = True,
71    feature_name = "supports_dynamic_linker",
72)
73
74pw_cc_unsafe_feature(
75    name = "static_link_cpp_runtimes",
76    builtin = True,
77    feature_name = "static_link_cpp_runtimes",
78)
79
80pw_cc_unsafe_feature(
81    name = "supports_pic",
82    builtin = True,
83    feature_name = "supports_pic",
84)
85