| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium 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 | |
| 6 toolchain("x86_newlib") { | 5 toolchain("x86_newlib") { |
| 7 toolprefix = "gen/sdk/toolchain/linux_x86_newlib/bin/x86_64-nacl-" | 6 toolprefix = "gen/sdk/toolchain/linux_x86_newlib/bin/x86_64-nacl-" |
| 8 cc = toolprefix + "gcc" | 7 cc = toolprefix + "gcc" |
| 9 cxx = toolprefix + "g++" | 8 cxx = toolprefix + "g++" |
| 10 ld = toolprefix + "g++" | 9 ld = toolprefix + "g++" |
| 11 | 10 |
| 12 tool("cc") { | 11 tool("cc") { |
| 13 command = "$cc -MMD -MF \$out.d \$defines \$includes \$cflags \$cflags_c -c
\$in -o \$out" | 12 command = "$cc -MMD -MF \$out.d \$defines \$includes \$cflags \$cflags_c -c
\$in -o \$out" |
| 14 description = "CC(NaCl x86 Newlib) \$out" | 13 description = "CC(NaCl x86 Newlib) \$out" |
| 15 depfile = "\$out.d" | 14 depfile = "\$out.d" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 toolchain_args() { | 52 toolchain_args() { |
| 54 # Override the default OS detection. The build config will set the is_* | 53 # Override the default OS detection. The build config will set the is_* |
| 55 # flags accordingly. | 54 # flags accordingly. |
| 56 os = "nacl" | 55 os = "nacl" |
| 57 | 56 |
| 58 # Component build not supported in NaCl, since it does not support shared | 57 # Component build not supported in NaCl, since it does not support shared |
| 59 # libraries. | 58 # libraries. |
| 60 is_component_build = false | 59 is_component_build = false |
| 61 } | 60 } |
| 62 } | 61 } |
| OLD | NEW |