Skip to content

Commit 674ee07

Browse files
author
ricow@chromium.org
committedAug 10, 2011
Allow snapshots to be generated without using vfp3 code on arm.
There is currently no way of specifying that the snapshot build by scons should be created without using the vfp3 instructions. Review URL: http://codereview.chromium.org/7604031 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@8872 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
1 parent a48c89f commit 674ee07

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed
 

‎SConstruct

+18-3
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,19 @@ LIBRARY_FLAGS = {
153153
}
154154
},
155155
'armeabi:softfp' : {
156-
'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0', 'CAN_USE_VFP_INSTRUCTIONS'],
156+
'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'],
157+
'vfp3:on': {
158+
'CPPDEFINES' : ['CAN_USE_VFP_INSTRUCTIONS']
159+
},
157160
'simulator:none': {
158161
'CCFLAGS': ['-mfloat-abi=softfp'],
159162
}
160163
},
161164
'armeabi:hard' : {
162-
'CPPDEFINES' : ['USE_EABI_HARDFLOAT=1', 'CAN_USE_VFP_INSTRUCTIONS'],
165+
'CPPDEFINES' : ['USE_EABI_HARDFLOAT=1'],
166+
'vfp3:on': {
167+
'CPPDEFINES' : ['CAN_USE_VFP_INSTRUCTIONS']
168+
},
163169
'simulator:none': {
164170
'CCFLAGS': ['-mfloat-abi=hard'],
165171
}
@@ -496,7 +502,10 @@ SAMPLE_FLAGS = {
496502
}
497503
},
498504
'armeabi:hard' : {
499-
'CPPDEFINES' : ['USE_EABI_HARDFLOAT=1', 'CAN_USE_VFP_INSTRUCTIONS'],
505+
'CPPDEFINES' : ['USE_EABI_HARDFLOAT=1'],
506+
'vfp3:on': {
507+
'CPPDEFINES' : ['CAN_USE_VFP_INSTRUCTIONS']
508+
},
500509
'simulator:none': {
501510
'CCFLAGS': ['-mfloat-abi=hard'],
502511
}
@@ -1090,6 +1099,12 @@ SIMPLE_OPTIONS = {
10901099
'default': 'off',
10911100
'help': 'compress startup data (snapshot) [Linux only]'
10921101
},
1102+
'vfp3': {
1103+
'values': ['on', 'off'],
1104+
'default': 'on',
1105+
'help': 'use vfp3 instructions when building the snapshot [Arm only]'
1106+
},
1107+
10931108
}
10941109

10951110
ALL_OPTIONS = dict(PLATFORM_OPTIONS, **SIMPLE_OPTIONS)

0 commit comments

Comments
 (0)
Please sign in to comment.