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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 [ 'v8_target_arch!="x64"', { | 283 [ 'v8_target_arch!="x64"', { |
284 # Pass -m32 to the compiler iff it understands the flag. | 284 # Pass -m32 to the compiler iff it understands the flag. |
285 'variables': { | 285 'variables': { |
286 'm32flag': '<!(' + | 286 'm32flag': '<!((echo | $(echo ${CXX:-$(which g++)}) -m32 -E - > /d
ev/null 2>&1) && echo -n "-m32" || true)', |
287 '(echo | $(echo ${CXX:-$(which g++)}) -m32 -E - ' + | |
288 ' > /dev/null 2>&1) ' + | |
289 '&& echo -n "-m32" || true)', | |
290 }, | 287 }, |
291 'cflags': [ '<(m32flag)' ], | 288 'cflags': [ '<(m32flag)' ], |
292 'ldflags': [ '<(m32flag)' ], | 289 'ldflags': [ '<(m32flag)' ], |
293 }], | 290 }], |
294 [ 'v8_no_strict_aliasing==1', { | 291 [ 'v8_no_strict_aliasing==1', { |
295 'cflags': [ '-fno-strict-aliasing' ], | 292 'cflags': [ '-fno-strict-aliasing' ], |
296 }], | 293 }], |
297 ], # conditions | 294 ], # conditions |
298 }], | 295 }], |
299 ['OS=="solaris"', { | 296 ['OS=="solaris"', { |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 # some test cases can cause stack overflow. | 411 # some test cases can cause stack overflow. |
415 # 'StackReserveSize': '297152', | 412 # 'StackReserveSize': '297152', |
416 }, | 413 }, |
417 }, | 414 }, |
418 }], # OS=="win" | 415 }], # OS=="win" |
419 ], # conditions | 416 ], # conditions |
420 }, # Release | 417 }, # Release |
421 }, # configurations | 418 }, # configurations |
422 }, # target_defaults | 419 }, # target_defaults |
423 } | 420 } |
OLD | NEW |