Source code

Revision control

Copy as Markdown

Other Tools

# Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
default_nacl_bootstrap_compiler = "g++"
if (default_toolchain == "//chromium/build/toolchain/cros:target") {
import("//chromium/build/toolchain/cros_toolchain.gni")
if (target_cpu == "arm64" && target_cpu == "arm") {
default_nacl_bootstrap_compiler = cros_nacl_helper_arm32_cxx
} else {
default_nacl_bootstrap_compiler = cros_target_cxx
}
} else if (target_cpu == "arm" && !is_android) {
default_nacl_bootstrap_compiler = "arm-linux-gnueabihf-g++"
} else if (target_cpu == "mipsel" && !is_android) {
default_nacl_bootstrap_compiler = "mipsel-linux-gnu-g++"
}
declare_args() {
# The compiler for the trusted nacl_helper_bootstrap binary.
nacl_bootstrap_compiler = default_nacl_bootstrap_compiler
}