| 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 cc = "gcc" | 5 cc = "gcc" |
| 6 cxx = "g++" | 6 cxx = "g++" |
| 7 ar = "ar" | 7 ar = "ar" |
| 8 ld = cxx | 8 ld = cxx |
| 9 | 9 |
| 10 # The toolchains below all issue the same commands with some different flags. | 10 # The toolchains below all issue the same commands with some different flags. |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 description = "STAMP \$out" | 116 description = "STAMP \$out" |
| 117 } | 117 } |
| 118 tool("copy") { | 118 tool("copy") { |
| 119 command = copy_command | 119 command = copy_command |
| 120 description = "COPY \$in \$out" | 120 description = "COPY \$in \$out" |
| 121 } | 121 } |
| 122 | 122 |
| 123 # When invoking this toolchain not as the default one, these args will be | 123 # When invoking this toolchain not as the default one, these args will be |
| 124 # passed to the build. They are ignored when this is the default toolchain. | 124 # passed to the build. They are ignored when this is the default toolchain. |
| 125 toolchain_args() { | 125 toolchain_args() { |
| 126 cpu_arch = "x32" | 126 cpu_arch = "x86" |
| 127 } | 127 } |
| 128 } | 128 } |
| 129 | 129 |
| 130 # 64-bit ----------------------------------------------------------------------- | 130 # 64-bit ----------------------------------------------------------------------- |
| 131 | 131 |
| 132 toolchain("64") { | 132 toolchain("64") { |
| 133 # Make these apply to all tools below. | 133 # Make these apply to all tools below. |
| 134 lib_prefix = "-l" | 134 lib_prefix = "-l" |
| 135 lib_dir_prefix="-L" | 135 lib_dir_prefix="-L" |
| 136 | 136 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 command = copy_command | 171 command = copy_command |
| 172 description = "COPY \$in \$out" | 172 description = "COPY \$in \$out" |
| 173 } | 173 } |
| 174 | 174 |
| 175 # When invoking this toolchain not as the default one, these args will be | 175 # When invoking this toolchain not as the default one, these args will be |
| 176 # passed to the build. They are ignored when this is the default toolchain. | 176 # passed to the build. They are ignored when this is the default toolchain. |
| 177 toolchain_args() { | 177 toolchain_args() { |
| 178 cpu_arch = "x64" | 178 cpu_arch = "x64" |
| 179 } | 179 } |
| 180 } | 180 } |
| OLD | NEW |