| Index: SConstruct
|
| diff --git a/SConstruct b/SConstruct
|
| index 84863e38caf700ce159f24108b9a72739fe1d937..cc65ce5e7f3334446b41e50bf16065865ae5ccad 100644
|
| --- a/SConstruct
|
| +++ b/SConstruct
|
| @@ -212,9 +212,12 @@ LIBRARY_FLAGS = {
|
| 'LINKFLAGS': ['-m32'],
|
| 'mipsabi:softfloat': {
|
| 'CPPDEFINES': ['__mips_soft_float=1'],
|
| + 'fpu:on': {
|
| + 'CPPDEFINES' : ['CAN_USE_FPU_INSTRUCTIONS']
|
| + }
|
| },
|
| 'mipsabi:hardfloat': {
|
| - 'CPPDEFINES': ['__mips_hard_float=1'],
|
| + 'CPPDEFINES': ['__mips_hard_float=1', 'CAN_USE_FPU_INSTRUCTIONS'],
|
| }
|
| },
|
| 'arch:x64': {
|
| @@ -558,7 +561,10 @@ SAMPLE_FLAGS = {
|
| },
|
| 'mipsabi:hardfloat': {
|
| 'CCFLAGS': ['-mhard-float'],
|
| - 'LINKFLAGS': ['-mhard-float']
|
| + 'LINKFLAGS': ['-mhard-float'],
|
| + 'fpu:on': {
|
| + 'CPPDEFINES' : ['CAN_USE_FPU_INSTRUCTIONS']
|
| + }
|
| }
|
| }
|
| },
|
| @@ -1123,6 +1129,11 @@ SIMPLE_OPTIONS = {
|
| 'default': 'on',
|
| 'help': 'use vfp3 instructions when building the snapshot [Arm only]'
|
| },
|
| + 'fpu': {
|
| + 'values': ['on', 'off'],
|
| + 'default': 'on',
|
| + 'help': 'use fpu instructions when building the snapshot [MIPS only]'
|
| + },
|
|
|
| }
|
|
|
|
|