| OLD | NEW |
| 1 # Copyright 2011 the V8 project authors. All rights reserved. | 1 # Copyright 2011 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 'CCFLAGS': ['-mhard-float'], | 204 'CCFLAGS': ['-mhard-float'], |
| 205 'LINKFLAGS': ['-mhard-float'] | 205 'LINKFLAGS': ['-mhard-float'] |
| 206 } | 206 } |
| 207 } | 207 } |
| 208 }, | 208 }, |
| 209 'simulator:mips': { | 209 'simulator:mips': { |
| 210 'CCFLAGS': ['-m32'], | 210 'CCFLAGS': ['-m32'], |
| 211 'LINKFLAGS': ['-m32'], | 211 'LINKFLAGS': ['-m32'], |
| 212 'mipsabi:softfloat': { | 212 'mipsabi:softfloat': { |
| 213 'CPPDEFINES': ['__mips_soft_float=1'], | 213 'CPPDEFINES': ['__mips_soft_float=1'], |
| 214 'fpu:on': { |
| 215 'CPPDEFINES' : ['CAN_USE_FPU_INSTRUCTIONS'] |
| 216 } |
| 214 }, | 217 }, |
| 215 'mipsabi:hardfloat': { | 218 'mipsabi:hardfloat': { |
| 216 'CPPDEFINES': ['__mips_hard_float=1'], | 219 'CPPDEFINES': ['__mips_hard_float=1', 'CAN_USE_FPU_INSTRUCTIONS'], |
| 217 } | 220 } |
| 218 }, | 221 }, |
| 219 'arch:x64': { | 222 'arch:x64': { |
| 220 'CPPDEFINES': ['V8_TARGET_ARCH_X64'], | 223 'CPPDEFINES': ['V8_TARGET_ARCH_X64'], |
| 221 'CCFLAGS': ['-m64'], | 224 'CCFLAGS': ['-m64'], |
| 222 'LINKFLAGS': ['-m64'], | 225 'LINKFLAGS': ['-m64'], |
| 223 }, | 226 }, |
| 224 'gdbjit:on': { | 227 'gdbjit:on': { |
| 225 'CPPDEFINES': ['ENABLE_GDB_JIT_INTERFACE'] | 228 'CPPDEFINES': ['ENABLE_GDB_JIT_INTERFACE'] |
| 226 }, | 229 }, |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 }, | 552 }, |
| 550 'library:static': { | 553 'library:static': { |
| 551 'LINKFLAGS': ['-static', '-static-libgcc'] | 554 'LINKFLAGS': ['-static', '-static-libgcc'] |
| 552 }, | 555 }, |
| 553 'mipsabi:softfloat': { | 556 'mipsabi:softfloat': { |
| 554 'CCFLAGS': ['-msoft-float'], | 557 'CCFLAGS': ['-msoft-float'], |
| 555 'LINKFLAGS': ['-msoft-float'] | 558 'LINKFLAGS': ['-msoft-float'] |
| 556 }, | 559 }, |
| 557 'mipsabi:hardfloat': { | 560 'mipsabi:hardfloat': { |
| 558 'CCFLAGS': ['-mhard-float'], | 561 'CCFLAGS': ['-mhard-float'], |
| 559 'LINKFLAGS': ['-mhard-float'] | 562 'LINKFLAGS': ['-mhard-float'], |
| 563 'fpu:on': { |
| 564 'CPPDEFINES' : ['CAN_USE_FPU_INSTRUCTIONS'] |
| 565 } |
| 560 } | 566 } |
| 561 } | 567 } |
| 562 }, | 568 }, |
| 563 'simulator:arm': { | 569 'simulator:arm': { |
| 564 'CCFLAGS': ['-m32'], | 570 'CCFLAGS': ['-m32'], |
| 565 'LINKFLAGS': ['-m32'] | 571 'LINKFLAGS': ['-m32'] |
| 566 }, | 572 }, |
| 567 'simulator:mips': { | 573 'simulator:mips': { |
| 568 'CCFLAGS': ['-m32'], | 574 'CCFLAGS': ['-m32'], |
| 569 'LINKFLAGS': ['-m32'] | 575 'LINKFLAGS': ['-m32'] |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 'compress_startup_data': { | 1120 'compress_startup_data': { |
| 1115 'values': ['off', 'bz2'], | 1121 'values': ['off', 'bz2'], |
| 1116 'default': 'off', | 1122 'default': 'off', |
| 1117 'help': 'compress startup data (snapshot) [Linux only]' | 1123 'help': 'compress startup data (snapshot) [Linux only]' |
| 1118 }, | 1124 }, |
| 1119 'vfp3': { | 1125 'vfp3': { |
| 1120 'values': ['on', 'off'], | 1126 'values': ['on', 'off'], |
| 1121 'default': 'on', | 1127 'default': 'on', |
| 1122 'help': 'use vfp3 instructions when building the snapshot [Arm only]' | 1128 'help': 'use vfp3 instructions when building the snapshot [Arm only]' |
| 1123 }, | 1129 }, |
| 1130 'fpu': { |
| 1131 'values': ['on', 'off'], |
| 1132 'default': 'on', |
| 1133 'help': 'use fpu instructions when building the snapshot [MIPS only]' |
| 1134 }, |
| 1124 | 1135 |
| 1125 } | 1136 } |
| 1126 | 1137 |
| 1127 ALL_OPTIONS = dict(PLATFORM_OPTIONS, **SIMPLE_OPTIONS) | 1138 ALL_OPTIONS = dict(PLATFORM_OPTIONS, **SIMPLE_OPTIONS) |
| 1128 | 1139 |
| 1129 | 1140 |
| 1130 def AddOptions(options, result): | 1141 def AddOptions(options, result): |
| 1131 guess_env = Environment(options=result) | 1142 guess_env = Environment(options=result) |
| 1132 for (name, option) in options.iteritems(): | 1143 for (name, option) in options.iteritems(): |
| 1133 if 'guess' in option: | 1144 if 'guess' in option: |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1559 # version of scons. Also, there's a bug in some revisions that | 1570 # version of scons. Also, there's a bug in some revisions that |
| 1560 # doesn't allow this flag to be set, so we swallow any exceptions. | 1571 # doesn't allow this flag to be set, so we swallow any exceptions. |
| 1561 # Lovely. | 1572 # Lovely. |
| 1562 try: | 1573 try: |
| 1563 SetOption('warn', 'no-deprecated') | 1574 SetOption('warn', 'no-deprecated') |
| 1564 except: | 1575 except: |
| 1565 pass | 1576 pass |
| 1566 | 1577 |
| 1567 | 1578 |
| 1568 Build() | 1579 Build() |
| OLD | NEW |