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