xref: /aosp_15_r20/external/cronet/components/nacl/toolchain.gni (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1# Copyright 2022 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# To run NaCl on CrOS ARM64, we use a nacl_helper binary which gets built for
6# ARM32. is_minimal_toolchain indicates that we are currently building this.
7# This is required because the Chrome OS build makes only a minimal set of ARM32
8# libraries available inside an ARM64 build, which means we need to limit the
9# (indirect) dependencies of nacl_helper.
10# Note that this is different from is_nacl in that we are not actually using a
11# nacl toolchain to compile nacl_helper.
12# See https://crbug.com/1339021 for more details.
13is_minimal_toolchain =
14    target_cpu == "arm64" && current_cpu == "arm" && (is_chromeos || is_linux)
15