1 # Copyright 2020 The Pigweed Authors
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
7 # https://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, 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
15 import("//build_overrides/pigweed.gni")
17 # Specifies the tools used by host GCC toolchains.
18 _host_gcc_toolchain = {
23 is_host_toolchain = true
26 # Common configs shared by all host GCC toolchains.
28 "$dir_pw_toolchain/host_gcc:disable_psabi_warning",
29 "$dir_pw_toolchain/host_gcc:mingw_z_format",
32 pw_toolchain_host_gcc = {
34 name = "host_gcc_debug"
35 forward_variables_from(_host_gcc_toolchain, "*")
37 default_configs = _configs + [ "$dir_pw_build:optimize_debugging" ]
42 name = "host_gcc_speed_optimized"
43 forward_variables_from(_host_gcc_toolchain, "*")
45 default_configs = _configs + [ "$dir_pw_build:optimize_speed" ]
50 name = "host_gcc_size_optimized"
51 forward_variables_from(_host_gcc_toolchain, "*")
53 default_configs = _configs + [ "$dir_pw_build:optimize_size" ]
58 # Describes host Linux GCC toolchains.
59 pw_toolchain_host_gcc_list = [
60 pw_toolchain_host_gcc.debug,
61 pw_toolchain_host_gcc.speed_optimized,
62 pw_toolchain_host_gcc.size_optimized,