OLD | NEW |
1 # Copyright 2013 the V8 project authors. All rights reserved. | 1 # Copyright 2013 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 ['v8_target_arch=="arm64"', { | 281 ['v8_target_arch=="arm64"', { |
282 'defines': [ | 282 'defines': [ |
283 'V8_TARGET_ARCH_ARM64', | 283 'V8_TARGET_ARCH_ARM64', |
284 ], | 284 ], |
285 }], | 285 }], |
286 ['v8_target_arch=="ia32"', { | 286 ['v8_target_arch=="ia32"', { |
287 'defines': [ | 287 'defines': [ |
288 'V8_TARGET_ARCH_IA32', | 288 'V8_TARGET_ARCH_IA32', |
289 ], | 289 ], |
290 }], # v8_target_arch=="ia32" | 290 }], # v8_target_arch=="ia32" |
| 291 ['v8_target_arch=="x87"', { |
| 292 'defines': [ |
| 293 'V8_TARGET_ARCH_X87', |
| 294 ], |
| 295 'cflags': ['-mfpmath=387'], |
| 296 'ldflags': ['-mfpmath=387'], |
| 297 }], # v8_target_arch=="x87" |
291 ['v8_target_arch=="mips"', { | 298 ['v8_target_arch=="mips"', { |
292 'defines': [ | 299 'defines': [ |
293 'V8_TARGET_ARCH_MIPS', | 300 'V8_TARGET_ARCH_MIPS', |
294 ], | 301 ], |
295 'variables': { | 302 'variables': { |
296 'mipscompiler': '<!($(echo <(CXX)) -v 2>&1 | grep -q "^Target: mips" &
& echo "yes" || echo "no")', | 303 'mipscompiler': '<!($(echo <(CXX)) -v 2>&1 | grep -q "^Target: mips" &
& echo "yes" || echo "no")', |
297 }, | 304 }, |
298 'conditions': [ | 305 'conditions': [ |
299 ['mipscompiler=="yes"', { | 306 ['mipscompiler=="yes"', { |
300 'target_conditions': [ | 307 'target_conditions': [ |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 [ 'v8_no_strict_aliasing==1', { | 440 [ 'v8_no_strict_aliasing==1', { |
434 'cflags': [ '-fno-strict-aliasing' ], | 441 'cflags': [ '-fno-strict-aliasing' ], |
435 }], | 442 }], |
436 ], # conditions | 443 ], # conditions |
437 }], | 444 }], |
438 ['OS=="solaris"', { | 445 ['OS=="solaris"', { |
439 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. | 446 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. |
440 }], | 447 }], |
441 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 448 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
442 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ | 449 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ |
443 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ | 450 (v8_target_arch=="arm" or v8_target_arch=="ia32" or v8_target_arch=="x87
" or\ |
444 v8_target_arch=="mips" or v8_target_arch=="mipsel")', { | 451 v8_target_arch=="mips" or v8_target_arch=="mipsel")', { |
445 # Check whether the host compiler and target compiler support the | 452 # Check whether the host compiler and target compiler support the |
446 # '-m32' option and set it if so. | 453 # '-m32' option and set it if so. |
447 'target_conditions': [ | 454 'target_conditions': [ |
448 ['_toolset=="host"', { | 455 ['_toolset=="host"', { |
449 'variables': { | 456 'variables': { |
450 'm32flag': '<!(($(echo ${CXX_host:-$(which g++)}) -m32 -E - > /dev
/null 2>&1 < /dev/null) && echo "-m32" || true)', | 457 'm32flag': '<!(($(echo ${CXX_host:-$(which g++)}) -m32 -E - > /dev
/null 2>&1 < /dev/null) && echo "-m32" || true)', |
451 }, | 458 }, |
452 'cflags': [ '<(m32flag)' ], | 459 'cflags': [ '<(m32flag)' ], |
453 'ldflags': [ '<(m32flag)' ], | 460 'ldflags': [ '<(m32flag)' ], |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 'OptimizeReferences': '2', | 808 'OptimizeReferences': '2', |
802 'EnableCOMDATFolding': '2', | 809 'EnableCOMDATFolding': '2', |
803 }, | 810 }, |
804 }, | 811 }, |
805 }], # OS=="win" | 812 }], # OS=="win" |
806 ], # conditions | 813 ], # conditions |
807 }, # Release | 814 }, # Release |
808 }, # configurations | 815 }, # configurations |
809 }, # target_defaults | 816 }, # target_defaults |
810 } | 817 } |
OLD | NEW |