Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Side by Side Diff: SConstruct

Issue 7604031: Allow snapshots to be generated without using vfp3 code on arm. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 'unalignedaccesses:off' : { 146 'unalignedaccesses:off' : {
147 'CPPDEFINES' : ['CAN_USE_UNALIGNED_ACCESSES=0'] 147 'CPPDEFINES' : ['CAN_USE_UNALIGNED_ACCESSES=0']
148 }, 148 },
149 'armeabi:soft' : { 149 'armeabi:soft' : {
150 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'], 150 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'],
151 'simulator:none': { 151 'simulator:none': {
152 'CCFLAGS': ['-mfloat-abi=soft'], 152 'CCFLAGS': ['-mfloat-abi=soft'],
153 } 153 }
154 }, 154 },
155 'armeabi:softfp' : { 155 '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 },
157 'simulator:none': { 160 'simulator:none': {
158 'CCFLAGS': ['-mfloat-abi=softfp'], 161 'CCFLAGS': ['-mfloat-abi=softfp'],
159 } 162 }
160 }, 163 },
161 'armeabi:hard' : { 164 '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 },
163 'simulator:none': { 169 'simulator:none': {
164 'CCFLAGS': ['-mfloat-abi=hard'], 170 'CCFLAGS': ['-mfloat-abi=hard'],
165 } 171 }
166 } 172 }
167 }, 173 },
168 'simulator:arm': { 174 'simulator:arm': {
169 'CCFLAGS': ['-m32'], 175 'CCFLAGS': ['-m32'],
170 'LINKFLAGS': ['-m32'], 176 'LINKFLAGS': ['-m32'],
171 }, 177 },
172 'arch:mips': { 178 'arch:mips': {
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 'CCFLAGS': ['-mfloat-abi=soft'], 495 'CCFLAGS': ['-mfloat-abi=soft'],
490 } 496 }
491 }, 497 },
492 'armeabi:softfp' : { 498 'armeabi:softfp' : {
493 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'], 499 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'],
494 'simulator:none': { 500 'simulator:none': {
495 'CCFLAGS': ['-mfloat-abi=softfp'], 501 'CCFLAGS': ['-mfloat-abi=softfp'],
496 } 502 }
497 }, 503 },
498 'armeabi:hard' : { 504 '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 },
500 'simulator:none': { 509 'simulator:none': {
501 'CCFLAGS': ['-mfloat-abi=hard'], 510 'CCFLAGS': ['-mfloat-abi=hard'],
502 } 511 }
503 } 512 }
504 }, 513 },
505 'arch:ia32': { 514 'arch:ia32': {
506 'CCFLAGS': ['-m32'], 515 'CCFLAGS': ['-m32'],
507 'LINKFLAGS': ['-m32'] 516 'LINKFLAGS': ['-m32']
508 }, 517 },
509 'arch:x64': { 518 'arch:x64': {
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 'mips_arch_variant': { 1041 'mips_arch_variant': {
1033 'values': ['mips32r2', 'mips32r1'], 1042 'values': ['mips32r2', 'mips32r1'],
1034 'default': 'mips32r2', 1043 'default': 'mips32r2',
1035 'help': 'mips variant' 1044 'help': 'mips variant'
1036 }, 1045 },
1037 'compress_startup_data': { 1046 'compress_startup_data': {
1038 'values': ['off', 'bz2'], 1047 'values': ['off', 'bz2'],
1039 'default': 'off', 1048 'default': 'off',
1040 'help': 'compress startup data (snapshot) [Linux only]' 1049 'help': 'compress startup data (snapshot) [Linux only]'
1041 }, 1050 },
1051 'vfp3': {
1052 'values': ['on', 'off'],
1053 'default': 'on',
1054 'help': 'use vfp3 instructions when building the snapshot [Arm only]'
1055 },
1056
1042 } 1057 }
1043 1058
1044 ALL_OPTIONS = dict(PLATFORM_OPTIONS, **SIMPLE_OPTIONS) 1059 ALL_OPTIONS = dict(PLATFORM_OPTIONS, **SIMPLE_OPTIONS)
1045 1060
1046 1061
1047 def AddOptions(options, result): 1062 def AddOptions(options, result):
1048 guess_env = Environment(options=result) 1063 guess_env = Environment(options=result)
1049 for (name, option) in options.iteritems(): 1064 for (name, option) in options.iteritems():
1050 if 'guess' in option: 1065 if 'guess' in option:
1051 # Option has a guess function 1066 # Option has a guess function
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1476 # version of scons. Also, there's a bug in some revisions that 1491 # version of scons. Also, there's a bug in some revisions that
1477 # doesn't allow this flag to be set, so we swallow any exceptions. 1492 # doesn't allow this flag to be set, so we swallow any exceptions.
1478 # Lovely. 1493 # Lovely.
1479 try: 1494 try:
1480 SetOption('warn', 'no-deprecated') 1495 SetOption('warn', 'no-deprecated')
1481 except: 1496 except:
1482 pass 1497 pass
1483 1498
1484 1499
1485 Build() 1500 Build()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698