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