1 # Copyright 2016 The Native Client Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6 # Untrusted architecture
7 use_nacl_x86 = target_cpu == "x86"
8 use_nacl_x64 = target_cpu == "x64" || target_os == "win"
9 use_nacl_arm = target_cpu == "arm"
12 use_clang_newlib = true
18 toolchain_untrusted = "//build/toolchain/nacl:glibc_x86"
20 if (use_clang_newlib) {
21 toolchain_untrusted = "//build/toolchain/nacl:clang_newlib_x86"
23 toolchain_irt = "//build/toolchain/nacl:irt_x86"
27 toolchain_untrusted = "//build/toolchain/nacl:glibc_x64"
29 if (use_clang_newlib) {
30 toolchain_untrusted = "//build/toolchain/nacl:clang_newlib_x64"
32 toolchain_irt = "//build/toolchain/nacl:irt_x64"
36 toolchain_untrusted = "//build/toolchain/nacl:glibc_arm"
38 if (use_clang_newlib) {
39 toolchain_untrusted = "//build/toolchain/nacl:clang_newlib_arm"
41 toolchain_irt = "//build/toolchain/nacl:irt_arm"