OLD | NEW |
---|---|
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
273 ['OS=="win" and v8_enable_prof==1', { | 273 ['OS=="win" and v8_enable_prof==1', { |
274 'msvs_settings': { | 274 'msvs_settings': { |
275 'VCLinkerTool': { | 275 'VCLinkerTool': { |
276 'GenerateMapFile': 'true', | 276 'GenerateMapFile': 'true', |
277 }, | 277 }, |
278 }, | 278 }, |
279 }], | 279 }], |
280 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 280 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
281 or OS=="netbsd"', { | 281 or OS=="netbsd"', { |
282 'conditions': [ | 282 'conditions': [ |
283 [ 'target_arch=="ia32"', { | 283 [ 'v8_target_arch!="x64"', { |
284 'cflags': [ '-m32' ], | 284 # Pass -m32 to the compiler iff it understands the flag. |
285 'ldflags': [ '-m32' ], | 285 'variables': { |
286 'm32flag': '<!((echo | $(echo ${CXX:-$(which g++)}) -m32 -E - >/de v/null 2>&1) && echo -n "-m32" || echo -n "")', | |
danno
2012/04/13 07:44:30
nit: 80 col? and maybe Sven's || true suggestion?
| |
287 }, | |
288 'cflags': [ '<(m32flag)' ], | |
289 'ldflags': [ '<(m32flag)' ], | |
286 }], | 290 }], |
287 [ 'v8_no_strict_aliasing==1', { | 291 [ 'v8_no_strict_aliasing==1', { |
288 'cflags': [ '-fno-strict-aliasing' ], | 292 'cflags': [ '-fno-strict-aliasing' ], |
289 }], | 293 }], |
290 ], # conditions | 294 ], # conditions |
291 }], | 295 }], |
292 ['OS=="solaris"', { | 296 ['OS=="solaris"', { |
293 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. | 297 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. |
294 }], | 298 }], |
295 ], # conditions | 299 ], # conditions |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
407 # some test cases can cause stack overflow. | 411 # some test cases can cause stack overflow. |
408 # 'StackReserveSize': '297152', | 412 # 'StackReserveSize': '297152', |
409 }, | 413 }, |
410 }, | 414 }, |
411 }], # OS=="win" | 415 }], # OS=="win" |
412 ], # conditions | 416 ], # conditions |
413 }, # Release | 417 }, # Release |
414 }, # configurations | 418 }, # configurations |
415 }, # target_defaults | 419 }, # target_defaults |
416 } | 420 } |
OLD | NEW |