| OLD | NEW |
| 1 # Copyright 2010 the V8 project authors. All rights reserved. | 1 # Copyright 2010 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 'CCFLAGS': ['-m32'], | 203 'CCFLAGS': ['-m32'], |
| 204 'LINKFLAGS': ['-m32'] | 204 'LINKFLAGS': ['-m32'] |
| 205 }, | 205 }, |
| 206 'arch:arm': { | 206 'arch:arm': { |
| 207 'CPPDEFINES': ['V8_TARGET_ARCH_ARM'] | 207 'CPPDEFINES': ['V8_TARGET_ARCH_ARM'] |
| 208 }, | 208 }, |
| 209 'simulator:arm': { | 209 'simulator:arm': { |
| 210 'CCFLAGS': ['-m32', '-DCAN_USE_UNALIGNED_ACCESSES=1'], | 210 'CCFLAGS': ['-m32', '-DCAN_USE_UNALIGNED_ACCESSES=1'], |
| 211 'LINKFLAGS': ['-m32'] | 211 'LINKFLAGS': ['-m32'] |
| 212 }, | 212 }, |
| 213 'armvariant:thumb2': { | |
| 214 'CPPDEFINES': ['V8_ARM_VARIANT_THUMB'] | |
| 215 }, | |
| 216 'armvariant:arm': { | |
| 217 'CPPDEFINES': ['V8_ARM_VARIANT_ARM'] | |
| 218 }, | |
| 219 'arch:mips': { | 213 'arch:mips': { |
| 220 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], | 214 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], |
| 221 'simulator:none': { | 215 'simulator:none': { |
| 222 'CCFLAGS': ['-EL', '-mips32r2', '-Wa,-mips32r2', '-fno-inline'], | 216 'CCFLAGS': ['-EL', '-mips32r2', '-Wa,-mips32r2', '-fno-inline'], |
| 223 'LDFLAGS': ['-EL'] | 217 'LDFLAGS': ['-EL'] |
| 224 } | 218 } |
| 225 }, | 219 }, |
| 226 'simulator:mips': { | 220 'simulator:mips': { |
| 227 'CCFLAGS': ['-m32'], | 221 'CCFLAGS': ['-m32'], |
| 228 'LINKFLAGS': ['-m32'] | 222 'LINKFLAGS': ['-m32'] |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 'verbose': { | 752 'verbose': { |
| 759 'values': ['on', 'off'], | 753 'values': ['on', 'off'], |
| 760 'default': 'off', | 754 'default': 'off', |
| 761 'help': 'more output from compiler and linker' | 755 'help': 'more output from compiler and linker' |
| 762 }, | 756 }, |
| 763 'visibility': { | 757 'visibility': { |
| 764 'values': ['default', 'hidden'], | 758 'values': ['default', 'hidden'], |
| 765 'default': 'hidden', | 759 'default': 'hidden', |
| 766 'help': 'shared library symbol visibility' | 760 'help': 'shared library symbol visibility' |
| 767 }, | 761 }, |
| 768 'armvariant': { | |
| 769 'values': ['arm', 'thumb2', 'none'], | |
| 770 'default': 'none', | |
| 771 'help': 'generate thumb2 instructions instead of arm instructions (default)' | |
| 772 }, | |
| 773 'pgo': { | 762 'pgo': { |
| 774 'values': ['off', 'instrument', 'optimize'], | 763 'values': ['off', 'instrument', 'optimize'], |
| 775 'default': 'off', | 764 'default': 'off', |
| 776 'help': 'select profile guided optimization variant', | 765 'help': 'select profile guided optimization variant', |
| 777 } | 766 } |
| 778 } | 767 } |
| 779 | 768 |
| 780 | 769 |
| 781 def GetOptions(): | 770 def GetOptions(): |
| 782 result = Options() | 771 result = Options() |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 956 print "Warning: forcing architecture to match simulator (%s)" % options['s
imulator'] | 945 print "Warning: forcing architecture to match simulator (%s)" % options['s
imulator'] |
| 957 options['arch'] = options['simulator'] | 946 options['arch'] = options['simulator'] |
| 958 if (options['prof'] != 'off') and (options['profilingsupport'] == 'off'): | 947 if (options['prof'] != 'off') and (options['profilingsupport'] == 'off'): |
| 959 # Print a warning if profiling is enabled without profiling support | 948 # Print a warning if profiling is enabled without profiling support |
| 960 print "Warning: forcing profilingsupport on when prof is on" | 949 print "Warning: forcing profilingsupport on when prof is on" |
| 961 options['profilingsupport'] = 'on' | 950 options['profilingsupport'] = 'on' |
| 962 if os == 'win32' and options['pgo'] != 'off' and options['msvcltcg'] == 'off': | 951 if os == 'win32' and options['pgo'] != 'off' and options['msvcltcg'] == 'off': |
| 963 if 'msvcltcg' in ARGUMENTS: | 952 if 'msvcltcg' in ARGUMENTS: |
| 964 print "Warning: forcing msvcltcg on as it is required for pgo (%s)" % opti
ons['pgo'] | 953 print "Warning: forcing msvcltcg on as it is required for pgo (%s)" % opti
ons['pgo'] |
| 965 options['msvcltcg'] = 'on' | 954 options['msvcltcg'] = 'on' |
| 966 if (options['armvariant'] == 'none' and options['arch'] == 'arm'): | |
| 967 options['armvariant'] = 'arm' | |
| 968 if (options['armvariant'] != 'none' and options['arch'] != 'arm'): | |
| 969 options['armvariant'] = 'none' | |
| 970 if options['arch'] == 'mips': | 955 if options['arch'] == 'mips': |
| 971 if ('regexp' in ARGUMENTS) and options['regexp'] == 'native': | 956 if ('regexp' in ARGUMENTS) and options['regexp'] == 'native': |
| 972 # Print a warning if native regexp is specified for mips | 957 # Print a warning if native regexp is specified for mips |
| 973 print "Warning: forcing regexp to interpreted for mips" | 958 print "Warning: forcing regexp to interpreted for mips" |
| 974 options['regexp'] = 'interpreted' | 959 options['regexp'] = 'interpreted' |
| 975 | 960 |
| 976 | 961 |
| 977 def ParseEnvOverrides(arg, imports): | 962 def ParseEnvOverrides(arg, imports): |
| 978 # The environment overrides are in the format NAME0:value0,NAME1:value1,... | 963 # The environment overrides are in the format NAME0:value0,NAME1:value1,... |
| 979 # The environment imports are in the format NAME0,NAME1,... | 964 # The environment imports are in the format NAME0,NAME1,... |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1137 # version of scons. Also, there's a bug in some revisions that | 1122 # version of scons. Also, there's a bug in some revisions that |
| 1138 # doesn't allow this flag to be set, so we swallow any exceptions. | 1123 # doesn't allow this flag to be set, so we swallow any exceptions. |
| 1139 # Lovely. | 1124 # Lovely. |
| 1140 try: | 1125 try: |
| 1141 SetOption('warn', 'no-deprecated') | 1126 SetOption('warn', 'no-deprecated') |
| 1142 except: | 1127 except: |
| 1143 pass | 1128 pass |
| 1144 | 1129 |
| 1145 | 1130 |
| 1146 Build() | 1131 Build() |
| OLD | NEW |