xref: /aosp_15_r20/external/cronet/build/config/nacl/host_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# The compiler for the trusted nacl_helper_bootstrap binary.
6*6777b538SAndroid Build Coastguard Workernacl_bootstrap_compiler = "g++"
7*6777b538SAndroid Build Coastguard Workerif (default_toolchain == "//build/toolchain/cros:target") {
8*6777b538SAndroid Build Coastguard Worker  import("//build/toolchain/cros_toolchain.gni")
9*6777b538SAndroid Build Coastguard Worker  if (target_cpu == "arm64" && current_cpu == "arm") {
10*6777b538SAndroid Build Coastguard Worker    nacl_bootstrap_compiler = cros_nacl_helper_arm32_cxx
11*6777b538SAndroid Build Coastguard Worker  } else {
12*6777b538SAndroid Build Coastguard Worker    nacl_bootstrap_compiler = cros_target_cxx
13*6777b538SAndroid Build Coastguard Worker  }
14*6777b538SAndroid Build Coastguard Worker} else if (current_cpu == "arm" && !is_android) {
15*6777b538SAndroid Build Coastguard Worker  nacl_bootstrap_compiler = "arm-linux-gnueabihf-g++"
16*6777b538SAndroid Build Coastguard Worker} else if (current_cpu == "mipsel" && !is_android) {
17*6777b538SAndroid Build Coastguard Worker  nacl_bootstrap_compiler = "mipsel-linux-gnu-g++"
18*6777b538SAndroid Build Coastguard Worker}
19