| 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 25 matching lines...) Expand all Loading... |
| 36 'v8_target_arch%': '<(target_arch)', | 36 'v8_target_arch%': '<(target_arch)', |
| 37 | 37 |
| 38 # Setting 'v8_can_use_unaligned_accesses' to 'true' will allow the code | 38 # Setting 'v8_can_use_unaligned_accesses' to 'true' will allow the code |
| 39 # generated by V8 to do unaligned memory access, and setting it to 'false' | 39 # generated by V8 to do unaligned memory access, and setting it to 'false' |
| 40 # will ensure that the generated code will always do aligned memory | 40 # will ensure that the generated code will always do aligned memory |
| 41 # accesses. The default value of 'default' will try to determine the correct | 41 # accesses. The default value of 'default' will try to determine the correct |
| 42 # setting. Note that for Intel architectures (ia32 and x64) unaligned memory | 42 # setting. Note that for Intel architectures (ia32 and x64) unaligned memory |
| 43 # access is allowed for all CPUs. | 43 # access is allowed for all CPUs. |
| 44 'v8_can_use_unaligned_accesses%': 'default', | 44 'v8_can_use_unaligned_accesses%': 'default', |
| 45 | 45 |
| 46 # Setting 'v8_can_use_vfp2_instructions' to 'true' will enable use of ARM VF
P | 46 # Setting 'v8_can_use_vfp_instructions' to 'true' will enable use of ARM VFP |
| 47 # instructions in the V8 generated code. VFP instructions will be enabled | 47 # instructions in the V8 generated code. VFP instructions will be enabled |
| 48 # both for the snapshot and for the ARM target. Leaving the default value | 48 # both for the snapshot and for the ARM target. Leaving the default value |
| 49 # of 'false' will avoid VFP instructions in the snapshot and use CPU feature | 49 # of 'false' will avoid VFP instructions in the snapshot and use CPU feature |
| 50 # probing when running on the target. | 50 # probing when running on the target. |
| 51 'v8_can_use_vfp2_instructions%': 'false', | 51 'v8_can_use_vfp2_instructions%': 'false', |
| 52 'v8_can_use_vfp3_instructions%': 'false', | 52 'v8_can_use_vfp3_instructions%': 'false', |
| 53 | 53 |
| 54 # Similar to vfp but on MIPS. | 54 # Similar to vfp but on MIPS. |
| 55 'v8_can_use_fpu_instructions%': 'true', | 55 'v8_can_use_fpu_instructions%': 'true', |
| 56 | 56 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 ], | 145 ], |
| 146 }], | 146 }], |
| 147 [ 'v8_can_use_vfp3_instructions=="true"', { | 147 [ 'v8_can_use_vfp3_instructions=="true"', { |
| 148 'defines': [ | 148 'defines': [ |
| 149 'CAN_USE_VFP3_INSTRUCTIONS', | 149 'CAN_USE_VFP3_INSTRUCTIONS', |
| 150 ], | 150 ], |
| 151 }], | 151 }], |
| 152 [ 'v8_use_arm_eabi_hardfloat=="true"', { | 152 [ 'v8_use_arm_eabi_hardfloat=="true"', { |
| 153 'defines': [ | 153 'defines': [ |
| 154 'USE_EABI_HARDFLOAT=1', | 154 'USE_EABI_HARDFLOAT=1', |
| 155 'CAN_USE_VFP2_INSTRUCTIONS', | 155 'CAN_USE_VFP_INSTRUCTIONS', |
| 156 ], | 156 ], |
| 157 'target_conditions': [ | 157 'target_conditions': [ |
| 158 ['_toolset=="target"', { | 158 ['_toolset=="target"', { |
| 159 'cflags': ['-mfloat-abi=hard',], | 159 'cflags': ['-mfloat-abi=hard',], |
| 160 }], | 160 }], |
| 161 ], | 161 ], |
| 162 }, { | 162 }, { |
| 163 'defines': [ | 163 'defines': [ |
| 164 'USE_EABI_HARDFLOAT=0', | 164 'USE_EABI_HARDFLOAT=0', |
| 165 ], | 165 ], |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 }, | 295 }, |
| 296 'cflags': [ '<(m32flag)' ], | 296 'cflags': [ '<(m32flag)' ], |
| 297 'ldflags': [ '<(m32flag)' ], | 297 'ldflags': [ '<(m32flag)' ], |
| 298 'xcode_settings': { | 298 'xcode_settings': { |
| 299 'ARCHS': [ 'i386' ], | 299 'ARCHS': [ 'i386' ], |
| 300 }, | 300 }, |
| 301 }], | 301 }], |
| 302 ['_toolset=="target"', { | 302 ['_toolset=="target"', { |
| 303 'variables': { | 303 'variables': { |
| 304 'm32flag': '<!((echo | $(echo ${CXX_target:-${CXX:-$(which g++)}})
-m32 -E - > /dev/null 2>&1) && echo "-m32" || true)', | 304 'm32flag': '<!((echo | $(echo ${CXX_target:-${CXX:-$(which g++)}})
-m32 -E - > /dev/null 2>&1) && echo "-m32" || true)', |
| 305 'clang%': 0, | |
| 306 }, | 305 }, |
| 307 'conditions': [ | 306 'cflags': [ '<(m32flag)' ], |
| 308 ['OS!="android" or clang==1', { | 307 'ldflags': [ '<(m32flag)' ], |
| 309 'cflags': [ '<(m32flag)' ], | |
| 310 'ldflags': [ '<(m32flag)' ], | |
| 311 }], | |
| 312 ], | |
| 313 'xcode_settings': { | 308 'xcode_settings': { |
| 314 'ARCHS': [ 'i386' ], | 309 'ARCHS': [ 'i386' ], |
| 315 }, | 310 }, |
| 316 }], | 311 }], |
| 317 ], | 312 ], |
| 318 }], | 313 }], |
| 319 ['OS=="freebsd" or OS=="openbsd"', { | 314 ['OS=="freebsd" or OS=="openbsd"', { |
| 320 'cflags': [ '-I/usr/local/include' ], | 315 'cflags': [ '-I/usr/local/include' ], |
| 321 }], | 316 }], |
| 322 ['OS=="netbsd"', { | 317 ['OS=="netbsd"', { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 'OptimizeReferences': '2', | 421 'OptimizeReferences': '2', |
| 427 'EnableCOMDATFolding': '2', | 422 'EnableCOMDATFolding': '2', |
| 428 }, | 423 }, |
| 429 }, | 424 }, |
| 430 }], # OS=="win" | 425 }], # OS=="win" |
| 431 ], # conditions | 426 ], # conditions |
| 432 }, # Release | 427 }, # Release |
| 433 }, # configurations | 428 }, # configurations |
| 434 }, # target_defaults | 429 }, # target_defaults |
| 435 } | 430 } |
| OLD | NEW |