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': '<!(' + |
| 287 '(echo | $(echo ${CXX:-$(which g++)}) -m32 -E - ' + |
| 288 ' > /dev/null 2>&1) ' + |
| 289 '&& echo -n "-m32" || true)', |
| 290 }, |
| 291 'cflags': [ '<(m32flag)' ], |
| 292 'ldflags': [ '<(m32flag)' ], |
286 }], | 293 }], |
287 [ 'v8_no_strict_aliasing==1', { | 294 [ 'v8_no_strict_aliasing==1', { |
288 'cflags': [ '-fno-strict-aliasing' ], | 295 'cflags': [ '-fno-strict-aliasing' ], |
289 }], | 296 }], |
290 ], # conditions | 297 ], # conditions |
291 }], | 298 }], |
292 ['OS=="solaris"', { | 299 ['OS=="solaris"', { |
293 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. | 300 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. |
294 }], | 301 }], |
295 ], # conditions | 302 ], # conditions |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 # some test cases can cause stack overflow. | 414 # some test cases can cause stack overflow. |
408 # 'StackReserveSize': '297152', | 415 # 'StackReserveSize': '297152', |
409 }, | 416 }, |
410 }, | 417 }, |
411 }], # OS=="win" | 418 }], # OS=="win" |
412 ], # conditions | 419 ], # conditions |
413 }, # Release | 420 }, # Release |
414 }, # configurations | 421 }, # configurations |
415 }, # target_defaults | 422 }, # target_defaults |
416 } | 423 } |
OLD | NEW |