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

Side by Side Diff: SConstruct

Issue 6904126: ARM: Enhance the hardfloat support (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix Created 9 years, 7 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 | src/platform-linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2010 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
11 # with the distribution. 11 # with the distribution.
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 'LINKFLAGS': ['-m32'] 148 'LINKFLAGS': ['-m32']
149 }, 149 },
150 'arch:arm': { 150 'arch:arm': {
151 'CPPDEFINES': ['V8_TARGET_ARCH_ARM'], 151 'CPPDEFINES': ['V8_TARGET_ARCH_ARM'],
152 'unalignedaccesses:on' : { 152 'unalignedaccesses:on' : {
153 'CPPDEFINES' : ['CAN_USE_UNALIGNED_ACCESSES=1'] 153 'CPPDEFINES' : ['CAN_USE_UNALIGNED_ACCESSES=1']
154 }, 154 },
155 'unalignedaccesses:off' : { 155 'unalignedaccesses:off' : {
156 'CPPDEFINES' : ['CAN_USE_UNALIGNED_ACCESSES=0'] 156 'CPPDEFINES' : ['CAN_USE_UNALIGNED_ACCESSES=0']
157 }, 157 },
158 'armeabi:softfloat' : { 158 'armeabi:soft' : {
159 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'],
160 'simulator:none': {
161 'CCFLAGS': ['-mfloat-abi=soft'],
162 }
163 },
164 'armeabi:softfp' : {
159 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'], 165 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'],
160 'simulator:none': { 166 'simulator:none': {
161 'CCFLAGS': ['-mfloat-abi=softfp'], 167 'CCFLAGS': ['-mfloat-abi=softfp'],
162 } 168 }
163 }, 169 },
164 'armeabi:hardfloat' : { 170 'armeabi:hard' : {
165 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=1', 'CAN_USE_VFP_INSTRUCTIONS'], 171 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=1', 'CAN_USE_VFP_INSTRUCTIONS'],
166 'simulator:none': { 172 'simulator:none': {
167 'CCFLAGS': ['-mfloat-abi=hard'], 173 'CCFLAGS': ['-mfloat-abi=hard'],
168 } 174 }
169 } 175 }
170 }, 176 },
171 'simulator:arm': { 177 'simulator:arm': {
172 'CCFLAGS': ['-m32'], 178 'CCFLAGS': ['-m32'],
173 'LINKFLAGS': ['-m32'], 179 'LINKFLAGS': ['-m32'],
174 }, 180 },
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 }, 467 },
462 'os:openbsd': { 468 'os:openbsd': {
463 'LIBPATH' : ['/usr/local/lib'], 469 'LIBPATH' : ['/usr/local/lib'],
464 'LIBS': ['execinfo', 'pthread'] 470 'LIBS': ['execinfo', 'pthread']
465 }, 471 },
466 'os:win32': { 472 'os:win32': {
467 'LIBS': ['winmm', 'ws2_32'] 473 'LIBS': ['winmm', 'ws2_32']
468 }, 474 },
469 'arch:arm': { 475 'arch:arm': {
470 'LINKFLAGS': ARM_LINK_FLAGS, 476 'LINKFLAGS': ARM_LINK_FLAGS,
471 'armeabi:softfloat' : { 477 'armeabi:soft' : {
478 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'],
479 'simulator:none': {
480 'CCFLAGS': ['-mfloat-abi=soft'],
481 }
482 },
483 'armeabi:softfp' : {
472 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'], 484 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'],
473 'simulator:none': { 485 'simulator:none': {
474 'CCFLAGS': ['-mfloat-abi=softfp'], 486 'CCFLAGS': ['-mfloat-abi=softfp'],
475 } 487 }
476 }, 488 },
477 'armeabi:hardfloat' : { 489 'armeabi:hard' : {
478 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=1', 'CAN_USE_VFP_INSTRUCTIONS'], 490 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=1', 'CAN_USE_VFP_INSTRUCTIONS'],
479 'simulator:none': { 491 'simulator:none': {
480 'CCFLAGS': ['-mfloat-abi=hard'], 492 'CCFLAGS': ['-mfloat-abi=hard'],
481 } 493 }
482 } 494 }
483 }, 495 },
484 'arch:ia32': { 496 'arch:ia32': {
485 'CCFLAGS': ['-m32'], 497 'CCFLAGS': ['-m32'],
486 'LINKFLAGS': ['-m32'] 498 'LINKFLAGS': ['-m32']
487 }, 499 },
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 'LIBPATH': ['.'], 596 'LIBPATH': ['.'],
585 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], 597 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'],
586 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'], 598 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'],
587 'LINKFLAGS': ['$CCFLAGS'], 599 'LINKFLAGS': ['$CCFLAGS'],
588 }, 600 },
589 'os:win32': { 601 'os:win32': {
590 'LIBS': ['winmm', 'ws2_32'] 602 'LIBS': ['winmm', 'ws2_32']
591 }, 603 },
592 'arch:arm': { 604 'arch:arm': {
593 'LINKFLAGS': ARM_LINK_FLAGS, 605 'LINKFLAGS': ARM_LINK_FLAGS,
594 'armeabi:softfloat' : { 606 'armeabi:soft' : {
607 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'],
608 'simulator:none': {
609 'CCFLAGS': ['-mfloat-abi=soft'],
610 }
611 },
612 'armeabi:softfp' : {
595 'simulator:none': { 613 'simulator:none': {
596 'CCFLAGS': ['-mfloat-abi=softfp'], 614 'CCFLAGS': ['-mfloat-abi=softfp'],
597 } 615 }
598 }, 616 },
599 'armeabi:hardfloat' : { 617 'armeabi:hard' : {
600 'simulator:none': { 618 'simulator:none': {
601 'CCFLAGS': ['-mfloat-abi=hard'], 619 'CCFLAGS': ['-mfloat-abi=hard'],
602 } 620 }
603 } 621 }
604 }, 622 },
605 'arch:ia32': { 623 'arch:ia32': {
606 'CCFLAGS': ['-m32'], 624 'CCFLAGS': ['-m32'],
607 'LINKFLAGS': ['-m32'] 625 'LINKFLAGS': ['-m32']
608 }, 626 },
609 'arch:x64': { 627 'arch:x64': {
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 'values': ['default', 'off'], 973 'values': ['default', 'off'],
956 'guess': GuessStrictAliasing, 974 'guess': GuessStrictAliasing,
957 'help': 'assume strict aliasing while optimizing' 975 'help': 'assume strict aliasing while optimizing'
958 }, 976 },
959 'pgo': { 977 'pgo': {
960 'values': ['off', 'instrument', 'optimize'], 978 'values': ['off', 'instrument', 'optimize'],
961 'default': 'off', 979 'default': 'off',
962 'help': 'select profile guided optimization variant', 980 'help': 'select profile guided optimization variant',
963 }, 981 },
964 'armeabi': { 982 'armeabi': {
965 'values': ['hardfloat', 'softfloat'], 983 'values': ['hard', 'softfp', 'soft'],
966 'default': 'softfloat', 984 'default': 'softfp',
967 'help': 'generate calling conventiont according to selected ARM EABI variant ' 985 'help': 'generate calling conventiont according to selected ARM EABI variant '
968 }, 986 },
969 'mipsabi': { 987 'mipsabi': {
970 'values': ['hardfloat', 'softfloat', 'none'], 988 'values': ['hardfloat', 'softfloat', 'none'],
971 'default': 'hardfloat', 989 'default': 'hardfloat',
972 'help': 'generate calling conventiont according to selected mips ABI' 990 'help': 'generate calling conventiont according to selected mips ABI'
973 }, 991 },
974 'mips_arch_variant': { 992 'mips_arch_variant': {
975 'values': ['mips32r2', 'mips32r1'], 993 'values': ['mips32r2', 'mips32r1'],
976 'default': 'mips32r2', 994 'default': 'mips32r2',
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 # version of scons. Also, there's a bug in some revisions that 1427 # version of scons. Also, there's a bug in some revisions that
1410 # doesn't allow this flag to be set, so we swallow any exceptions. 1428 # doesn't allow this flag to be set, so we swallow any exceptions.
1411 # Lovely. 1429 # Lovely.
1412 try: 1430 try:
1413 SetOption('warn', 'no-deprecated') 1431 SetOption('warn', 'no-deprecated')
1414 except: 1432 except:
1415 pass 1433 pass
1416 1434
1417 1435
1418 Build() 1436 Build()
OLDNEW
« no previous file with comments | « no previous file | src/platform-linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698