OLD | NEW |
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 24 matching lines...) Expand all Loading... |
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': [ '-m32', '-msse2', '-mfpmath=sse' ], |
44 'ldflags': [ '-m32', ], | 44 'ldflags': [ '-m32', ], |
45 'conditions': [ | |
46 ['c_frame_pointers==1', { | |
47 'cflags': [ | |
48 # Clang on Linux will still omit frame pointers from leaf | |
49 # functions unless told otherwise: | |
50 # (note this flag only works on recent GCC versions.) | |
51 '-mno-omit-leaf-frame-pointer', | |
52 ], | |
53 }], | |
54 ], | |
55 }, | 45 }, |
56 | 46 |
57 'Dart_Linux_x64_Base': { | 47 'Dart_Linux_x64_Base': { |
58 'abstract': 1, | 48 'abstract': 1, |
59 'cflags': [ '-m64', '-msse2' ], | 49 'cflags': [ '-m64', '-msse2' ], |
60 'ldflags': [ '-m64', ], | 50 'ldflags': [ '-m64', ], |
61 'conditions': [ | |
62 ['c_frame_pointers==1', { | |
63 'cflags': [ | |
64 # Clang on Linux will still omit frame pointers from leaf | |
65 # functions unless told otherwise: | |
66 # (note this flag only works on recent GCC versions.) | |
67 '-mno-omit-leaf-frame-pointer', | |
68 ], | |
69 }], | |
70 ], | |
71 }, | 51 }, |
72 | 52 |
73 'Dart_Linux_simarm_Base': { | 53 'Dart_Linux_simarm_Base': { |
74 'abstract': 1, | 54 'abstract': 1, |
75 'cflags': [ '-O3', '-m32', '-msse2', '-mfpmath=sse' ], | 55 'cflags': [ '-O3', '-m32', '-msse2', '-mfpmath=sse' ], |
76 'ldflags': [ '-m32', ], | 56 'ldflags': [ '-m32', ], |
77 }, | 57 }, |
78 | 58 |
79 'Dart_Linux_simarmv6_Base': { | 59 'Dart_Linux_simarmv6_Base': { |
80 'abstract': 1, | 60 'abstract': 1, |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 'abstract': 1, | 216 'abstract': 1, |
237 'cflags': [ | 217 'cflags': [ |
238 '-march=mips32', | 218 '-march=mips32', |
239 '-mhard-float', | 219 '-mhard-float', |
240 '-fno-strict-overflow', | 220 '-fno-strict-overflow', |
241 ], | 221 ], |
242 }, | 222 }, |
243 | 223 |
244 'Dart_Linux_Debug': { | 224 'Dart_Linux_Debug': { |
245 'abstract': 1, | 225 'abstract': 1, |
246 'conditions': [ | |
247 ['c_frame_pointers==1', { | |
248 'cflags': [ | |
249 '-fno-omit-frame-pointer', | |
250 ], | |
251 'defines': [ | |
252 'NATIVE_CODE_HAS_FRAME_POINTERS' | |
253 ], | |
254 }], | |
255 ], | |
256 'cflags': [ | 226 'cflags': [ |
257 '-O<(dart_debug_optimization_level)', | 227 '-O<(dart_debug_optimization_level)', |
| 228 '-fno-omit-frame-pointer', |
| 229 # Clang on Linux will still omit frame pointers from leaf |
| 230 # functions unless told otherwise: |
| 231 # (note this flag only works on recent GCC versions.) |
| 232 '-mno-omit-leaf-frame-pointer', |
258 ], | 233 ], |
259 }, | 234 }, |
260 | 235 |
261 'Dart_Linux_Release': { | 236 'Dart_Linux_Release': { |
262 'abstract': 1, | 237 'abstract': 1, |
263 'conditions': [ | |
264 ['c_frame_pointers==1', { | |
265 'cflags': [ | |
266 '-fno-omit-frame-pointer', | |
267 ], | |
268 'defines': [ | |
269 'NATIVE_CODE_HAS_FRAME_POINTERS' | |
270 ], | |
271 }], | |
272 ], | |
273 'cflags': [ | 238 'cflags': [ |
274 '-O3', | 239 '-O3', |
275 '-ffunction-sections', | 240 '-ffunction-sections', |
| 241 '-fno-omit-frame-pointer', |
| 242 # Clang on Linux will still omit frame pointers from leaf |
| 243 # functions unless told otherwise: |
| 244 # (note this flag only works on recent GCC versions.) |
| 245 '-mno-omit-leaf-frame-pointer', |
276 ], | 246 ], |
277 'ldflags': [ | 247 'ldflags': [ |
278 '-Wl,--gc-sections', | 248 '-Wl,--gc-sections', |
| 249 ], |
| 250 }, |
| 251 |
| 252 'Dart_Linux_Product': { |
| 253 'abstract': 1, |
| 254 'cflags': [ |
| 255 '-O3', |
| 256 '-ffunction-sections', |
| 257 '-fomit-frame-pointer', |
| 258 ], |
| 259 'ldflags': [ |
| 260 '-Wl,--gc-sections', |
279 ], | 261 ], |
280 }, | 262 }, |
281 }, | 263 }, |
282 }, | 264 }, |
283 } | 265 } |
OLD | NEW |