Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: tools/gyp/configurations_make.gypi

Issue 1666063002: Fix ARM cross build: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/gyp/configurations_xcode.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'dart_debug_optimization_level%': '2', 7 'dart_debug_optimization_level%': '2',
8 }, 8 },
9 'target_defaults': { 9 'target_defaults': {
10 'configurations': { 10 'configurations': {
(...skipping 22 matching lines...) Expand all
33 ], 33 ],
34 'ldflags': [ 34 'ldflags': [
35 '-Wl,-z,noexecstack', 35 '-Wl,-z,noexecstack',
36 '-Wl,-z,now', 36 '-Wl,-z,now',
37 '-Wl,-z,relro', 37 '-Wl,-z,relro',
38 ], 38 ],
39 }, 39 },
40 40
41 'Dart_Linux_ia32_Base': { 41 'Dart_Linux_ia32_Base': {
42 'abstract': 1, 42 'abstract': 1,
43 'cflags': [ '-m32', '-msse2', '-mfpmath=sse' ], 43 'cflags': [
44 'ldflags': [ '-m32', ], 44 '-m32',
45 '-msse2',
46 '-mfpmath=sse',
47 ],
48 'ldflags': [
49 '-m32',
50 ],
45 }, 51 },
46 52
47 'Dart_Linux_x64_Base': { 53 'Dart_Linux_x64_Base': {
48 'abstract': 1, 54 'abstract': 1,
49 'cflags': [ '-m64', '-msse2' ], 55 'cflags': [
50 'ldflags': [ '-m64', ], 56 '-m64',
57 '-msse2',
58 ],
59 'ldflags': [
60 '-m64',
61 ],
51 }, 62 },
52 63
53 'Dart_Linux_simarm_Base': { 64 'Dart_Linux_simarm_Base': {
54 'abstract': 1, 65 'abstract': 1,
55 'cflags': [ '-O3', '-m32', '-msse2', '-mfpmath=sse' ], 66 'cflags': [
56 'ldflags': [ '-m32', ], 67 '-O3',
68 '-m32',
69 '-msse2',
70 '-mfpmath=sse',
71 ],
72 'ldflags': [
73 '-m32',
74 ],
57 }, 75 },
58 76
59 'Dart_Linux_simarmv6_Base': { 77 'Dart_Linux_simarmv6_Base': {
60 'abstract': 1, 78 'abstract': 1,
61 'cflags': [ '-O3', '-m32', '-msse2', '-mfpmath=sse' ], 79 'cflags': [
62 'ldflags': [ '-m32', ], 80 '-O3',
81 '-m32',
82 '-msse2',
83 '-mfpmath=sse',
84 ],
85 'ldflags': [
86 '-m32',
87 ],
63 }, 88 },
64 89
65 'Dart_Linux_simarmv5te_Base': { 90 'Dart_Linux_simarmv5te_Base': {
66 'abstract': 1, 91 'abstract': 1,
67 'cflags': [ '-O3', '-m32', '-msse2', '-mfpmath=sse' ], 92 'cflags': [
68 'ldflags': [ '-m32', ], 93 '-O3',
94 '-m32',
95 '-msse2',
96 '-mfpmath=sse',
97 ],
98 'ldflags': [
99 '-m32',
100 ],
69 }, 101 },
70 102
71 'Dart_Linux_simarm64_Base': { 103 'Dart_Linux_simarm64_Base': {
72 'abstract': 1, 104 'abstract': 1,
73 'cflags': [ '-O3', '-m64', '-msse2', '-mfpmath=sse' ], 105 'cflags': [
74 'ldflags': [ '-m64', ], 106 '-O3',
107 '-m64',
108 '-msse2',
109 '-mfpmath=sse',
110 ],
111 'ldflags': [
112 '-m64',
113 ],
75 }, 114 },
76 115
77 # ARM cross-build 116 # ARM cross-build
78 'Dart_Linux_xarm_Base': { 117 'Dart_Linux_xarm_Base': {
79 'abstract': 1, 118 'abstract': 1,
80 'target_conditions': [ 119 'target_conditions': [
81 ['_toolset=="target"', { 120 ['_toolset=="target"', {
82 'cflags': [ 121 'cflags': [
83 '-marm', 122 '-marm',
84 '-mfpu=vfp', 123 '-mfpu=vfp',
85 '-Wno-psabi', # suppresses va_list warning 124 '-Wno-psabi', # suppresses va_list warning
86 '-fno-strict-overflow', 125 '-fno-strict-overflow',
87 ], 126 ],
88 }], 127 }],
89 ['_toolset=="host"', { 128 ['_toolset=="host"', {
90 'cflags': ['-m32', '-msse2', '-mfpmath=sse' ], 129 'cflags': [
91 'ldflags': ['-m32'], 130 '-m32',
131 '-msse2',
132 '-mfpmath=sse',
133 ],
134 'ldflags': [
135 '-m32',
136 ],
92 }]] 137 }]]
93 }, 138 },
94 139
95 # ARM native build 140 # ARM native build
96 'Dart_Linux_arm_Base': { 141 'Dart_Linux_arm_Base': {
97 'abstract': 1, 142 'abstract': 1,
98 'cflags': [ 143 'cflags': [
99 '-marm', 144 '-marm',
100 '-mfpu=vfp', 145 '-mfpu=vfp',
101 '-Wno-psabi', # suppresses va_list warning 146 '-Wno-psabi', # suppresses va_list warning
102 '-fno-strict-overflow', 147 '-fno-strict-overflow',
103 ], 148 ],
104 }, 149 },
105 150
106 # ARMv6 cross-build 151 # ARMv6 cross-build
107 'Dart_Linux_xarmv6_Base': { 152 'Dart_Linux_xarmv6_Base': {
108 'abstract': 1, 153 'abstract': 1,
109 'target_conditions': [ 154 'target_conditions': [
110 ['_toolset=="target"', { 155 ['_toolset=="target"', {
111 'cflags': [ 156 'cflags': [
112 '-march=armv6', 157 '-march=armv6',
113 '-mfpu=vfp', 158 '-mfpu=vfp',
114 '-Wno-psabi', # suppresses va_list warning 159 '-Wno-psabi', # suppresses va_list warning
115 '-fno-strict-overflow', 160 '-fno-strict-overflow',
116 ], 161 ],
117 }], 162 }],
118 ['_toolset=="host"', { 163 ['_toolset=="host"', {
119 'cflags': ['-m32', '-msse2', '-mfpmath=sse' ], 164 'cflags': [
120 'ldflags': ['-m32'], 165 '-m32',
166 '-msse2',
167 '-mfpmath=sse',
168 ],
169 'ldflags': [
170 '-m32',
171 ],
121 }]] 172 }]]
122 }, 173 },
123 174
124 # ARMv6 native build 175 # ARMv6 native build
125 'Dart_Linux_armv6_Base': { 176 'Dart_Linux_armv6_Base': {
126 'abstract': 1, 177 'abstract': 1,
127 'cflags': [ 178 'cflags': [
128 '-march=armv6', 179 '-march=armv6',
129 '-mfpu=vfp', 180 '-mfpu=vfp',
130 '-Wno-psabi', # suppresses va_list warning 181 '-Wno-psabi', # suppresses va_list warning
131 '-fno-strict-overflow', 182 '-fno-strict-overflow',
132 ], 183 ],
133 }, 184 },
134 185
135 # ARMv5 cross-build 186 # ARMv5 cross-build
136 'Dart_Linux_xarmv5te_Base': { 187 'Dart_Linux_xarmv5te_Base': {
137 'abstract': 1, 188 'abstract': 1,
138 'target_conditions': [ 189 'target_conditions': [
139 ['_toolset=="target"', { 190 ['_toolset=="target"', {
140 'cflags': [ 191 'cflags': [
141 '-mthumb', 192 '-mthumb',
142 '-mlong-calls', 193 '-mlong-calls',
143 '-march=armv5te', 194 '-march=armv5te',
144 '-mfloat-abi=soft', 195 '-mfloat-abi=soft',
145 '-Wno-psabi', # suppresses va_list warning 196 '-Wno-psabi', # suppresses va_list warning
146 '-fno-strict-overflow', 197 '-fno-strict-overflow',
147 ], 198 ],
148 }], 199 }],
149 ['_toolset=="host"', { 200 ['_toolset=="host"', {
150 'cflags': ['-m32', '-msse2', '-mfpmath=sse' ], 201 'cflags': [
151 'ldflags': ['-m32'], 202 '-m32',
203 '-msse2',
204 '-mfpmath=sse',
205 ],
206 'ldflags': [
207 '-m32',
208 ],
152 }]] 209 }]]
153 }, 210 },
154 211
155 # ARMv5 native build 212 # ARMv5 native build
156 'Dart_Linux_armv5te_Base': { 213 'Dart_Linux_armv5te_Base': {
157 'abstract': 1, 214 'abstract': 1,
158 'cflags': [ 215 'cflags': [
159 '-mthumb', 216 '-mthumb',
160 '-mlong-calls', 217 '-mlong-calls',
161 '-march=armv5te', 218 '-march=armv5te',
162 '-mfloat-abi=soft', 219 '-mfloat-abi=soft',
163 '-Wno-psabi', # suppresses va_list warning 220 '-Wno-psabi', # suppresses va_list warning
164 '-fno-strict-overflow', 221 '-fno-strict-overflow',
165 ], 222 ],
166 }, 223 },
167 224
168 # ARM64 cross-build 225 # ARM64 cross-build
169 'Dart_Linux_xarm64_Base': { 226 'Dart_Linux_xarm64_Base': {
170 'abstract': 1, 227 'abstract': 1,
171 'target_conditions': [ 228 'target_conditions': [
172 ['_toolset=="target"', { 229 ['_toolset=="target"', {
173 'cflags': [ '-O3', ], 230 'cflags': [
231 '-O3',
232 ],
174 }], 233 }],
175 ['_toolset=="host"', { 234 ['_toolset=="host"', {
176 'cflags': ['-O3', '-m64', '-msse2'], 235 'cflags': [
177 'ldflags': ['-m64'], 236 '-O3',
237 '-m64',
238 '-msse2',
239 ],
240 'ldflags': [
241 '-m64',
242 ],
178 }]] 243 }]]
179 }, 244 },
180 245
181 # ARM64 native build 246 # ARM64 native build
182 'Dart_Linux_arm64_Base': { 247 'Dart_Linux_arm64_Base': {
183 'abstract': 1, 248 'abstract': 1,
184 'cflags': [ '-O3', ], 249 'cflags': [
250 '-O3',
251 ],
185 }, 252 },
186 253
187 'Dart_Linux_simmips_Base': { 254 'Dart_Linux_simmips_Base': {
188 'abstract': 1, 255 'abstract': 1,
189 'cflags': [ '-O3', '-m32', '-msse2', '-mfpmath=sse' ], 256 'cflags': [
190 'ldflags': [ '-m32', ], 257 '-O3',
258 '-m32',
259 '-msse2',
260 '-mfpmath=sse',
261 ],
262 'ldflags': [
263 '-m32',
264 ],
191 }, 265 },
192 266
193 # MIPS cross-build 267 # MIPS cross-build
194 'Dart_Linux_xmips_Base': { 268 'Dart_Linux_xmips_Base': {
195 'abstract': 1, 269 'abstract': 1,
196 'target_conditions': [ 270 'target_conditions': [
197 ['_toolset=="target"', { 271 ['_toolset=="target"', {
198 'cflags': [ 272 'cflags': [
199 '-EL', 273 '-EL',
200 '-march=mips32', 274 '-march=mips32',
201 '-mhard-float', 275 '-mhard-float',
202 '-fno-strict-overflow', 276 '-fno-strict-overflow',
203 ], 277 ],
204 'ldflags': [ 278 'ldflags': [
205 '-EL', 279 '-EL',
206 ], 280 ],
207 }], 281 }],
208 ['_toolset=="host"',{ 282 ['_toolset=="host"',{
209 'cflags': [ '-O3', '-m32', '-msse2', '-mfpmath=sse' ], 283 'cflags': [
210 'ldflags': [ '-m32' ], 284 '-O3',
285 '-m32',
286 '-msse2',
287 '-mfpmath=sse',
288 ],
289 'ldflags': [
290 '-m32',
291 ],
211 }]] 292 }]]
212 }, 293 },
213 294
214 # MIPS native build 295 # MIPS native build
215 'Dart_Linux_mips_Base': { 296 'Dart_Linux_mips_Base': {
216 'abstract': 1, 297 'abstract': 1,
217 'cflags': [ 298 'cflags': [
218 '-march=mips32', 299 '-march=mips32',
219 '-mhard-float', 300 '-mhard-float',
220 '-fno-strict-overflow', 301 '-fno-strict-overflow',
221 ], 302 ],
222 }, 303 },
223 304
224 'Dart_Linux_Debug': { 305 'Dart_Linux_Debug': {
225 'abstract': 1, 306 'abstract': 1,
226 'cflags': [ 307 'cflags': [
227 '-O<(dart_debug_optimization_level)', 308 '-O<(dart_debug_optimization_level)',
228 '-fno-omit-frame-pointer', 309 '-fno-omit-frame-pointer',
229 # Clang on Linux will still omit frame pointers from leaf 310 # Clang on Linux will still omit frame pointers from leaf
230 # functions unless told otherwise: 311 # functions unless told otherwise:
231 # (note this flag only works on recent GCC versions.) 312 # (note this flag only works on recent GCC versions.)
232 '-mno-omit-leaf-frame-pointer', 313 #'-mno-omit-leaf-frame-pointer',
233 ], 314 ],
234 }, 315 },
235 316
236 'Dart_Linux_Release': { 317 'Dart_Linux_Release': {
237 'abstract': 1, 318 'abstract': 1,
238 'cflags': [ 319 'cflags': [
239 '-O3', 320 '-O3',
240 '-ffunction-sections', 321 '-ffunction-sections',
241 '-fno-omit-frame-pointer', 322 '-fno-omit-frame-pointer',
242 # Clang on Linux will still omit frame pointers from leaf 323 # Clang on Linux will still omit frame pointers from leaf
243 # functions unless told otherwise: 324 # functions unless told otherwise:
244 # (note this flag only works on recent GCC versions.) 325 # (note this flag only works on recent GCC versions.)
245 '-mno-omit-leaf-frame-pointer', 326 #'-mno-omit-leaf-frame-pointer',
246 ], 327 ],
247 'ldflags': [ 328 'ldflags': [
248 '-Wl,--gc-sections', 329 '-Wl,--gc-sections',
249 ], 330 ],
250 }, 331 },
251 332
252 'Dart_Linux_Product': { 333 'Dart_Linux_Product': {
253 'abstract': 1, 334 'abstract': 1,
254 'cflags': [ 335 'cflags': [
255 '-O3', 336 '-O3',
256 '-ffunction-sections', 337 '-ffunction-sections',
257 '-fomit-frame-pointer', 338 '-fomit-frame-pointer',
258 ], 339 ],
259 'ldflags': [ 340 'ldflags': [
260 '-Wl,--gc-sections', 341 '-Wl,--gc-sections',
261 ], 342 ],
262 }, 343 },
263 }, 344 },
264 }, 345 },
265 } 346 }
OLDNEW
« no previous file with comments | « no previous file | tools/gyp/configurations_xcode.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698