OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 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 import("//build/config/compiler/compiler.gni") |
5 import("//build/config/sysroot.gni") | 6 import("//build/config/sysroot.gni") |
6 import("//build/toolchain/gcc_toolchain.gni") | 7 import("//build/toolchain/gcc_toolchain.gni") |
7 | 8 |
8 clang_toolchain("clang_arm") { | 9 clang_toolchain("clang_arm") { |
9 toolprefix = "arm-linux-gnueabihf-" | 10 toolprefix = "arm-linux-gnueabihf-" |
10 toolchain_args = { | 11 toolchain_args = { |
11 current_cpu = "arm" | 12 current_cpu = "arm" |
12 current_os = "linux" | 13 current_os = "linux" |
13 } | 14 } |
14 } | 15 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 53 |
53 toolchain_args = { | 54 toolchain_args = { |
54 current_cpu = "arm" | 55 current_cpu = "arm" |
55 current_os = "linux" | 56 current_os = "linux" |
56 is_clang = false | 57 is_clang = false |
57 } | 58 } |
58 } | 59 } |
59 | 60 |
60 clang_toolchain("clang_x86") { | 61 clang_toolchain("clang_x86") { |
61 # Output linker map files for binary size analysis. | 62 # Output linker map files for binary size analysis. |
62 enable_linker_map = true | 63 # Currently disabled on LLD because of a bug (fixed upstream). |
| 64 # See https://crbug.com/716209. |
| 65 enable_linker_map = !use_lld |
63 | 66 |
64 toolchain_args = { | 67 toolchain_args = { |
65 current_cpu = "x86" | 68 current_cpu = "x86" |
66 current_os = "linux" | 69 current_os = "linux" |
67 } | 70 } |
68 } | 71 } |
69 | 72 |
70 clang_toolchain("clang_x86_v8_arm") { | 73 clang_toolchain("clang_x86_v8_arm") { |
71 toolchain_args = { | 74 toolchain_args = { |
72 current_cpu = "x86" | 75 current_cpu = "x86" |
(...skipping 13 matching lines...) Expand all Loading... |
86 gcc_toolchain("x86") { | 89 gcc_toolchain("x86") { |
87 cc = "gcc" | 90 cc = "gcc" |
88 cxx = "g++" | 91 cxx = "g++" |
89 | 92 |
90 readelf = "readelf" | 93 readelf = "readelf" |
91 nm = "nm" | 94 nm = "nm" |
92 ar = "ar" | 95 ar = "ar" |
93 ld = cxx | 96 ld = cxx |
94 | 97 |
95 # Output linker map files for binary size analysis. | 98 # Output linker map files for binary size analysis. |
96 enable_linker_map = true | 99 # Currently disabled on LLD because of a bug (fixed upstream). |
| 100 # See https://crbug.com/716209. |
| 101 enable_linker_map = !use_lld |
97 | 102 |
98 toolchain_args = { | 103 toolchain_args = { |
99 current_cpu = "x86" | 104 current_cpu = "x86" |
100 current_os = "linux" | 105 current_os = "linux" |
101 is_clang = false | 106 is_clang = false |
102 } | 107 } |
103 } | 108 } |
104 | 109 |
105 clang_toolchain("clang_x64") { | 110 clang_toolchain("clang_x64") { |
106 # Output linker map files for binary size analysis. | 111 # Output linker map files for binary size analysis. |
107 enable_linker_map = true | 112 # Currently disabled on LLD because of a bug (fixed upstream). |
| 113 # See https://crbug.com/716209. |
| 114 enable_linker_map = !use_lld |
108 | 115 |
109 toolchain_args = { | 116 toolchain_args = { |
110 current_cpu = "x64" | 117 current_cpu = "x64" |
111 current_os = "linux" | 118 current_os = "linux" |
112 } | 119 } |
113 } | 120 } |
114 | 121 |
115 clang_toolchain("clang_x64_v8_arm64") { | 122 clang_toolchain("clang_x64_v8_arm64") { |
116 toolchain_args = { | 123 toolchain_args = { |
117 current_cpu = "x64" | 124 current_cpu = "x64" |
(...skipping 13 matching lines...) Expand all Loading... |
131 gcc_toolchain("x64") { | 138 gcc_toolchain("x64") { |
132 cc = "gcc" | 139 cc = "gcc" |
133 cxx = "g++" | 140 cxx = "g++" |
134 | 141 |
135 readelf = "readelf" | 142 readelf = "readelf" |
136 nm = "nm" | 143 nm = "nm" |
137 ar = "ar" | 144 ar = "ar" |
138 ld = cxx | 145 ld = cxx |
139 | 146 |
140 # Output linker map files for binary size analysis. | 147 # Output linker map files for binary size analysis. |
141 enable_linker_map = true | 148 # Currently disabled on LLD because of a bug (fixed upstream). |
| 149 # See https://crbug.com/716209. |
| 150 enable_linker_map = !use_lld |
142 | 151 |
143 toolchain_args = { | 152 toolchain_args = { |
144 current_cpu = "x64" | 153 current_cpu = "x64" |
145 current_os = "linux" | 154 current_os = "linux" |
146 is_clang = false | 155 is_clang = false |
147 } | 156 } |
148 } | 157 } |
149 | 158 |
150 clang_toolchain("clang_mipsel") { | 159 clang_toolchain("clang_mipsel") { |
151 toolchain_args = { | 160 toolchain_args = { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 nm = "nm" | 204 nm = "nm" |
196 ar = "ar" | 205 ar = "ar" |
197 ld = cxx | 206 ld = cxx |
198 | 207 |
199 toolchain_args = { | 208 toolchain_args = { |
200 current_cpu = "ppc64" | 209 current_cpu = "ppc64" |
201 current_os = "linux" | 210 current_os = "linux" |
202 is_clang = false | 211 is_clang = false |
203 } | 212 } |
204 } | 213 } |
OLD | NEW |