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 5default_nacl_bootstrap_compiler = "g++" 6if (default_toolchain == "//build/toolchain/cros:target") { 7 import("//build/toolchain/cros_toolchain.gni") 8 if (target_cpu == "arm64" && current_cpu == "arm") { 9 default_nacl_bootstrap_compiler = cros_nacl_helper_arm32_cxx 10 } else { 11 default_nacl_bootstrap_compiler = cros_target_cxx 12 } 13} else if (current_cpu == "arm" && !is_android) { 14 default_nacl_bootstrap_compiler = "arm-linux-gnueabihf-g++" 15} else if (current_cpu == "mipsel" && !is_android) { 16 default_nacl_bootstrap_compiler = "mipsel-linux-gnu-g++" 17} 18 19declare_args() { 20 # The compiler for the trusted nacl_helper_bootstrap binary. 21 nacl_bootstrap_compiler = default_nacl_bootstrap_compiler 22} 23