| OLD | NEW |
| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 'CCFLAGS': ['-mhard-float'], | 203 'CCFLAGS': ['-mhard-float'], |
| 204 'LINKFLAGS': ['-mhard-float'] | 204 'LINKFLAGS': ['-mhard-float'] |
| 205 } | 205 } |
| 206 } | 206 } |
| 207 }, | 207 }, |
| 208 'simulator:mips': { | 208 'simulator:mips': { |
| 209 'CCFLAGS': ['-m32'], | 209 'CCFLAGS': ['-m32'], |
| 210 'LINKFLAGS': ['-m32'], | 210 'LINKFLAGS': ['-m32'], |
| 211 'mipsabi:softfloat': { | 211 'mipsabi:softfloat': { |
| 212 'CPPDEFINES': ['__mips_soft_float=1'], | 212 'CPPDEFINES': ['__mips_soft_float=1'], |
| 213 }, |
| 214 'mipsabi:hardfloat': { |
| 215 'CPPDEFINES': ['__mips_hard_float=1'], |
| 213 } | 216 } |
| 214 }, | 217 }, |
| 215 'arch:x64': { | 218 'arch:x64': { |
| 216 'CPPDEFINES': ['V8_TARGET_ARCH_X64'], | 219 'CPPDEFINES': ['V8_TARGET_ARCH_X64'], |
| 217 'CCFLAGS': ['-m64'], | 220 'CCFLAGS': ['-m64'], |
| 218 'LINKFLAGS': ['-m64'], | 221 'LINKFLAGS': ['-m64'], |
| 219 }, | 222 }, |
| 220 'gdbjit:on': { | 223 'gdbjit:on': { |
| 221 'CPPDEFINES': ['ENABLE_GDB_JIT_INTERFACE'] | 224 'CPPDEFINES': ['ENABLE_GDB_JIT_INTERFACE'] |
| 222 }, | 225 }, |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 'arch:ia32': { | 507 'arch:ia32': { |
| 505 'CCFLAGS': ['-m32'], | 508 'CCFLAGS': ['-m32'], |
| 506 'LINKFLAGS': ['-m32'] | 509 'LINKFLAGS': ['-m32'] |
| 507 }, | 510 }, |
| 508 'arch:x64': { | 511 'arch:x64': { |
| 509 'CCFLAGS': ['-m64'], | 512 'CCFLAGS': ['-m64'], |
| 510 'LINKFLAGS': ['-m64'] | 513 'LINKFLAGS': ['-m64'] |
| 511 }, | 514 }, |
| 512 'arch:mips': { | 515 'arch:mips': { |
| 513 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], | 516 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], |
| 517 'mips_arch_variant:mips32r2': { |
| 518 'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2'] |
| 519 }, |
| 514 'simulator:none': { | 520 'simulator:none': { |
| 515 'CCFLAGS': ['-EL', '-mips32r2', '-Wa,-mips32r2', '-fno-inline'], | 521 'CCFLAGS': ['-EL'], |
| 516 'LINKFLAGS': ['-EL'], | 522 'LINKFLAGS': ['-EL'], |
| 517 'LDFLAGS': ['-EL'] | 523 'mips_arch_variant:mips32r2': { |
| 524 'CCFLAGS': ['-mips32r2', '-Wa,-mips32r2'] |
| 525 }, |
| 526 'mips_arch_variant:mips32r1': { |
| 527 'CCFLAGS': ['-mips32', '-Wa,-mips32'] |
| 528 }, |
| 529 'library:static': { |
| 530 'LINKFLAGS': ['-static', '-static-libgcc'] |
| 531 }, |
| 532 'mipsabi:softfloat': { |
| 533 'CCFLAGS': ['-msoft-float'], |
| 534 'LINKFLAGS': ['-msoft-float'] |
| 535 }, |
| 536 'mipsabi:hardfloat': { |
| 537 'CCFLAGS': ['-mhard-float'], |
| 538 'LINKFLAGS': ['-mhard-float'] |
| 539 } |
| 518 } | 540 } |
| 519 }, | 541 }, |
| 520 'simulator:arm': { | 542 'simulator:arm': { |
| 521 'CCFLAGS': ['-m32'], | 543 'CCFLAGS': ['-m32'], |
| 522 'LINKFLAGS': ['-m32'] | 544 'LINKFLAGS': ['-m32'] |
| 523 }, | 545 }, |
| 524 'simulator:mips': { | 546 'simulator:mips': { |
| 525 'CCFLAGS': ['-m32'], | 547 'CCFLAGS': ['-m32'], |
| 526 'LINKFLAGS': ['-m32'] | 548 'LINKFLAGS': ['-m32'] |
| 527 }, | 549 }, |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 }, | 693 }, |
| 672 'simulator:arm': { | 694 'simulator:arm': { |
| 673 'CCFLAGS': ['-m32'], | 695 'CCFLAGS': ['-m32'], |
| 674 'LINKFLAGS': ['-m32'] | 696 'LINKFLAGS': ['-m32'] |
| 675 }, | 697 }, |
| 676 'simulator:mips': { | 698 'simulator:mips': { |
| 677 'CCFLAGS': ['-m32'], | 699 'CCFLAGS': ['-m32'], |
| 678 'LINKFLAGS': ['-m32'], | 700 'LINKFLAGS': ['-m32'], |
| 679 'mipsabi:softfloat': { | 701 'mipsabi:softfloat': { |
| 680 'CPPDEFINES': ['__mips_soft_float=1'], | 702 'CPPDEFINES': ['__mips_soft_float=1'], |
| 703 }, |
| 704 'mipsabi:hardfloat': { |
| 705 'CPPDEFINES': ['__mips_hard_float=1'], |
| 681 } | 706 } |
| 682 }, | 707 }, |
| 683 'mode:release': { | 708 'mode:release': { |
| 684 'CCFLAGS': ['-O2'] | 709 'CCFLAGS': ['-O2'] |
| 685 }, | 710 }, |
| 686 'mode:debug': { | 711 'mode:debug': { |
| 687 'CCFLAGS': ['-g', '-O0'], | 712 'CCFLAGS': ['-g', '-O0'], |
| 688 'CPPDEFINES': ['DEBUG'] | 713 'CPPDEFINES': ['DEBUG'] |
| 689 }, | 714 }, |
| 690 }, | 715 }, |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1231 print "Warning: forcing architecture to match simulator (%s)" % options['s
imulator'] | 1256 print "Warning: forcing architecture to match simulator (%s)" % options['s
imulator'] |
| 1232 options['arch'] = options['simulator'] | 1257 options['arch'] = options['simulator'] |
| 1233 if (options['prof'] != 'off') and (options['profilingsupport'] == 'off'): | 1258 if (options['prof'] != 'off') and (options['profilingsupport'] == 'off'): |
| 1234 # Print a warning if profiling is enabled without profiling support | 1259 # Print a warning if profiling is enabled without profiling support |
| 1235 print "Warning: forcing profilingsupport on when prof is on" | 1260 print "Warning: forcing profilingsupport on when prof is on" |
| 1236 options['profilingsupport'] = 'on' | 1261 options['profilingsupport'] = 'on' |
| 1237 if os == 'win32' and options['pgo'] != 'off' and options['msvcltcg'] == 'off': | 1262 if os == 'win32' and options['pgo'] != 'off' and options['msvcltcg'] == 'off': |
| 1238 if 'msvcltcg' in ARGUMENTS: | 1263 if 'msvcltcg' in ARGUMENTS: |
| 1239 print "Warning: forcing msvcltcg on as it is required for pgo (%s)" % opti
ons['pgo'] | 1264 print "Warning: forcing msvcltcg on as it is required for pgo (%s)" % opti
ons['pgo'] |
| 1240 options['msvcltcg'] = 'on' | 1265 options['msvcltcg'] = 'on' |
| 1241 if (options['simulator'] == 'mips' and options['mipsabi'] != 'softfloat'): | 1266 if (options['mipsabi'] != 'none') and (options['arch'] != 'mips') and (options
['simulator'] != 'mips'): |
| 1242 # Print a warning if soft-float ABI is not selected for mips simulator | 1267 options['mipsabi'] = 'none' |
| 1243 print "Warning: forcing soft-float mips ABI when running on simulator" | |
| 1244 options['mipsabi'] = 'softfloat' | |
| 1245 if (options['mipsabi'] != 'none') and (options['arch'] != 'mips') and (optio
ns['simulator'] != 'mips'): | |
| 1246 options['mipsabi'] = 'none' | |
| 1247 if options['liveobjectlist'] == 'on': | 1268 if options['liveobjectlist'] == 'on': |
| 1248 if (options['debuggersupport'] != 'on') or (options['mode'] == 'release'): | 1269 if (options['debuggersupport'] != 'on') or (options['mode'] == 'release'): |
| 1249 # Print a warning that liveobjectlist will implicitly enable the debugger | 1270 # Print a warning that liveobjectlist will implicitly enable the debugger |
| 1250 print "Warning: forcing debuggersupport on for liveobjectlist" | 1271 print "Warning: forcing debuggersupport on for liveobjectlist" |
| 1251 options['debuggersupport'] = 'on' | 1272 options['debuggersupport'] = 'on' |
| 1252 options['inspector'] = 'on' | 1273 options['inspector'] = 'on' |
| 1253 options['objectprint'] = 'on' | 1274 options['objectprint'] = 'on' |
| 1254 | 1275 |
| 1255 | 1276 |
| 1256 def ParseEnvOverrides(arg, imports): | 1277 def ParseEnvOverrides(arg, imports): |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1448 # version of scons. Also, there's a bug in some revisions that | 1469 # version of scons. Also, there's a bug in some revisions that |
| 1449 # doesn't allow this flag to be set, so we swallow any exceptions. | 1470 # doesn't allow this flag to be set, so we swallow any exceptions. |
| 1450 # Lovely. | 1471 # Lovely. |
| 1451 try: | 1472 try: |
| 1452 SetOption('warn', 'no-deprecated') | 1473 SetOption('warn', 'no-deprecated') |
| 1453 except: | 1474 except: |
| 1454 pass | 1475 pass |
| 1455 | 1476 |
| 1456 | 1477 |
| 1457 Build() | 1478 Build() |
| OLD | NEW |