1 # Copyright (c) 2020 Project CHIP Authors
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 import("//build_overrides/build.gni")
17 import("${build_root}/config/compiler/compiler.gni")
18 import("${build_root}/config/custom_toolchain.gni")
21 # Default configs for abi.
22 default_configs_abi = [ "${build_root}/config/compiler:abi_default" ]
24 # Default configs for debugging.
25 default_configs_debug = [ "${build_root}/config/compiler:debug_default" ]
27 # Default configs for specs.
28 default_configs_specs = [ "${build_root}/config/compiler:specs_default" ]
30 # Default configs for optimization.
31 default_configs_optimize =
32 [ "${build_root}/config/compiler:optimize_default" ]
34 # Default configs for language.
35 default_configs_std = [ "${build_root}/config/compiler:std_default" ]
37 # Defaults configs for symbols.
38 default_configs_symbols = [ "${build_root}/config/compiler:symbols_default" ]
40 # Defaults configs for aliasing.
41 default_configs_aliasing =
42 [ "${build_root}/config/compiler:aliasing_default" ]
44 # Defaults configs for size.
45 default_configs_size = [ "${build_root}/config/compiler:size_default" ]
47 # Defaults configs for exceptions.
48 default_configs_exceptions =
49 [ "${build_root}/config/compiler:exceptions_default" ]
51 # Default configs for unwind tables.
52 default_configs_unwind_tables =
53 [ "${build_root}/config/compiler:unwind_tables_default" ]
55 # Defaults configs for rtti.
56 default_configs_rtti = [ "${build_root}/config/compiler:rtti_default" ]
58 # Defaults configs for pic.
59 default_configs_pic = [ "${build_root}/config/compiler:pic_default" ]
61 # Defaults configs for pie.
62 default_configs_pie = [ "${build_root}/config/compiler:pie_default" ]
64 # Defaults configs for warnings.
65 default_configs_warnings =
66 [ "${build_root}/config/compiler:warnings_default" ]
68 # Defaults cosmetic configs.
69 default_configs_cosmetic =
70 [ "${build_root}/config/compiler:cosmetic_default" ]
72 # Default configs for runtime library.
73 default_configs_runtime = [ "${build_root}/config/compiler:runtime_default" ]
75 # Defaults sanitizer configs.
76 default_configs_sanitize =
77 [ "${build_root}/config/compiler:sanitize_default" ]
79 # Defaults fuzzing configs.
80 default_configs_fuzzing = [ "${build_root}/config/compiler:fuzzing_default" ]
82 # Defaults target-specific configs.
83 default_configs_target = [ "${build_root}/config/compiler:target_default" ]
85 # Extra default configs.
86 default_configs_extra = []
90 default_configs += default_configs_abi
91 default_configs += default_configs_debug
92 default_configs += default_configs_optimize
93 default_configs += default_configs_std
94 default_configs += default_configs_symbols
95 default_configs += default_configs_size
96 default_configs += default_configs_specs
97 default_configs += default_configs_exceptions
98 default_configs += default_configs_unwind_tables
99 default_configs += default_configs_pic
100 default_configs += default_configs_rtti
101 default_configs += default_configs_warnings
102 default_configs += default_configs_cosmetic
103 default_configs += default_configs_runtime
104 default_configs += default_configs_aliasing
105 default_configs += default_configs_sanitize
106 default_configs += default_configs_fuzzing
107 default_configs += default_configs_target
108 default_configs += default_configs_extra
110 executable_default_configs = []
111 executable_default_configs += default_configs_pie