| OLD | NEW |
| 1 # Copyright (c) 2015 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2015 The Native Client Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/toolchain/gcc_toolchain.gni") | 5 import("//build/toolchain/gcc_toolchain.gni") |
| 6 | 6 |
| 7 # This toolchain's sole purpose is to compile nacl_helper_bootstrap.c. | 7 # This toolchain's sole purpose is to compile nacl_helper_bootstrap.c. |
| 8 # That requires a separate toolchain because that's the most reasonable way | 8 # That requires a separate toolchain because that's the most reasonable way |
| 9 # to instantiate the standard configs in a context where use_gold=false | 9 # to instantiate the standard configs in a context where use_gold=false |
| 10 # and use_debug_fission=false when the main build is using either | 10 # and use_debug_fission=false when the main build is using either |
| 11 # use_gold=true or use_debug_fission=true. See ../BUILD.gn for details. | 11 # use_gold=true or use_debug_fission=true. See ../BUILD.gn for details. |
| 12 | 12 |
| 13 template("nacl_bootstrap_toolchain") { | 13 template("nacl_bootstrap_toolchain") { |
| 14 clang_toolchain(target_name) { | 14 clang_toolchain(target_name) { |
| 15 toolchain_cpu = invoker.toolchain_cpu | 15 toolchain_args = { |
| 16 toolchain_os = target_os | 16 current_cpu = invoker.toolchain_cpu |
| 17 use_debug_fission = false | 17 current_os = target_os |
| 18 use_gold = false | 18 use_debug_fission = false |
| 19 use_gold = false |
| 20 } |
| 19 } | 21 } |
| 20 } | 22 } |
| 21 | 23 |
| 22 nacl_bootstrap_toolchain("nacl_bootstrap_x64") { | 24 nacl_bootstrap_toolchain("nacl_bootstrap_x64") { |
| 23 toolchain_cpu = "x64" | 25 toolchain_cpu = "x64" |
| 24 } | 26 } |
| 25 | 27 |
| 26 nacl_bootstrap_toolchain("nacl_bootstrap_x86") { | 28 nacl_bootstrap_toolchain("nacl_bootstrap_x86") { |
| 27 toolchain_cpu = "x86" | 29 toolchain_cpu = "x86" |
| 28 } | 30 } |
| 29 | 31 |
| 30 nacl_bootstrap_toolchain("nacl_bootstrap_arm") { | 32 nacl_bootstrap_toolchain("nacl_bootstrap_arm") { |
| 31 toolchain_cpu = "arm" | 33 toolchain_cpu = "arm" |
| 32 } | 34 } |
| OLD | NEW |