| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 }, | 178 }, |
| 179 'simulator:arm': { | 179 'simulator:arm': { |
| 180 'CCFLAGS': ['-m32'], | 180 'CCFLAGS': ['-m32'], |
| 181 'LINKFLAGS': ['-m32'], | 181 'LINKFLAGS': ['-m32'], |
| 182 }, | 182 }, |
| 183 'arch:mips': { | 183 'arch:mips': { |
| 184 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], | 184 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], |
| 185 'mips_arch_variant:mips32r2': { | 185 'mips_arch_variant:mips32r2': { |
| 186 'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2'] | 186 'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2'] |
| 187 }, | 187 }, |
| 188 'mips_arch_variant:loongson': { |
| 189 'CPPDEFINES': ['_MIPS_ARCH_LOONGSON'] |
| 190 }, |
| 188 'simulator:none': { | 191 'simulator:none': { |
| 189 'CCFLAGS': ['-EL'], | 192 'CCFLAGS': ['-EL'], |
| 190 'LINKFLAGS': ['-EL'], | 193 'LINKFLAGS': ['-EL'], |
| 191 'mips_arch_variant:mips32r2': { | 194 'mips_arch_variant:mips32r2': { |
| 192 'CCFLAGS': ['-mips32r2', '-Wa,-mips32r2'] | 195 'CCFLAGS': ['-mips32r2', '-Wa,-mips32r2'] |
| 193 }, | 196 }, |
| 194 'mips_arch_variant:mips32r1': { | 197 'mips_arch_variant:mips32r1': { |
| 195 'CCFLAGS': ['-mips32', '-Wa,-mips32'] | 198 'CCFLAGS': ['-mips32', '-Wa,-mips32'] |
| 196 }, | 199 }, |
| 200 'mips_arch_variant:loongson': { |
| 201 'CCFLAGS': ['-march=mips3', '-Wa,-march=mips3'] |
| 202 }, |
| 197 'library:static': { | 203 'library:static': { |
| 198 'LINKFLAGS': ['-static', '-static-libgcc'] | 204 'LINKFLAGS': ['-static', '-static-libgcc'] |
| 199 }, | 205 }, |
| 200 'mipsabi:softfloat': { | 206 'mipsabi:softfloat': { |
| 201 'CCFLAGS': ['-msoft-float'], | 207 'CCFLAGS': ['-msoft-float'], |
| 202 'LINKFLAGS': ['-msoft-float'] | 208 'LINKFLAGS': ['-msoft-float'] |
| 203 }, | 209 }, |
| 204 'mipsabi:hardfloat': { | 210 'mipsabi:hardfloat': { |
| 205 'CCFLAGS': ['-mhard-float'], | 211 'CCFLAGS': ['-mhard-float'], |
| 206 'LINKFLAGS': ['-mhard-float'] | 212 'LINKFLAGS': ['-mhard-float'] |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 }, | 538 }, |
| 533 'arch:x64': { | 539 'arch:x64': { |
| 534 'CCFLAGS': ['-m64'], | 540 'CCFLAGS': ['-m64'], |
| 535 'LINKFLAGS': ['-m64'] | 541 'LINKFLAGS': ['-m64'] |
| 536 }, | 542 }, |
| 537 'arch:mips': { | 543 'arch:mips': { |
| 538 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], | 544 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], |
| 539 'mips_arch_variant:mips32r2': { | 545 'mips_arch_variant:mips32r2': { |
| 540 'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2'] | 546 'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2'] |
| 541 }, | 547 }, |
| 548 'mips_arch_variant:loongson': { |
| 549 'CPPDEFINES': ['_MIPS_ARCH_LOONGSON'] |
| 550 }, |
| 542 'simulator:none': { | 551 'simulator:none': { |
| 543 'CCFLAGS': ['-EL'], | 552 'CCFLAGS': ['-EL'], |
| 544 'LINKFLAGS': ['-EL'], | 553 'LINKFLAGS': ['-EL'], |
| 545 'mips_arch_variant:mips32r2': { | 554 'mips_arch_variant:mips32r2': { |
| 546 'CCFLAGS': ['-mips32r2', '-Wa,-mips32r2'] | 555 'CCFLAGS': ['-mips32r2', '-Wa,-mips32r2'] |
| 547 }, | 556 }, |
| 548 'mips_arch_variant:mips32r1': { | 557 'mips_arch_variant:mips32r1': { |
| 549 'CCFLAGS': ['-mips32', '-Wa,-mips32'] | 558 'CCFLAGS': ['-mips32', '-Wa,-mips32'] |
| 550 }, | 559 }, |
| 560 'mips_arch_variant:loongson': { |
| 561 'CCFLAGS': ['-march=mips3', '-Wa,-march=mips3'] |
| 562 }, |
| 551 'library:static': { | 563 'library:static': { |
| 552 'LINKFLAGS': ['-static', '-static-libgcc'] | 564 'LINKFLAGS': ['-static', '-static-libgcc'] |
| 553 }, | 565 }, |
| 554 'mipsabi:softfloat': { | 566 'mipsabi:softfloat': { |
| 555 'CCFLAGS': ['-msoft-float'], | 567 'CCFLAGS': ['-msoft-float'], |
| 556 'LINKFLAGS': ['-msoft-float'] | 568 'LINKFLAGS': ['-msoft-float'] |
| 557 }, | 569 }, |
| 558 'mipsabi:hardfloat': { | 570 'mipsabi:hardfloat': { |
| 559 'CCFLAGS': ['-mhard-float'], | 571 'CCFLAGS': ['-mhard-float'], |
| 560 'LINKFLAGS': ['-mhard-float'] | 572 'LINKFLAGS': ['-mhard-float'] |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 }, | 696 }, |
| 685 'arch:x64': { | 697 'arch:x64': { |
| 686 'CCFLAGS': ['-m64'], | 698 'CCFLAGS': ['-m64'], |
| 687 'LINKFLAGS': ['-m64'] | 699 'LINKFLAGS': ['-m64'] |
| 688 }, | 700 }, |
| 689 'arch:mips': { | 701 'arch:mips': { |
| 690 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], | 702 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], |
| 691 'mips_arch_variant:mips32r2': { | 703 'mips_arch_variant:mips32r2': { |
| 692 'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2'] | 704 'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2'] |
| 693 }, | 705 }, |
| 706 'mips_arch_variant:loongson': { |
| 707 'CPPDEFINES': ['_MIPS_ARCH_LOONGSON'] |
| 708 }, |
| 694 'simulator:none': { | 709 'simulator:none': { |
| 695 'CCFLAGS': ['-EL'], | 710 'CCFLAGS': ['-EL'], |
| 696 'LINKFLAGS': ['-EL'], | 711 'LINKFLAGS': ['-EL'], |
| 697 'mips_arch_variant:mips32r2': { | 712 'mips_arch_variant:mips32r2': { |
| 698 'CCFLAGS': ['-mips32r2', '-Wa,-mips32r2'] | 713 'CCFLAGS': ['-mips32r2', '-Wa,-mips32r2'] |
| 699 }, | 714 }, |
| 700 'mips_arch_variant:mips32r1': { | 715 'mips_arch_variant:mips32r1': { |
| 701 'CCFLAGS': ['-mips32', '-Wa,-mips32'] | 716 'CCFLAGS': ['-mips32', '-Wa,-mips32'] |
| 702 }, | 717 }, |
| 718 'mips_arch_variant:loongson': { |
| 719 'CCFLAGS': ['-march=mips3', '-Wa,-march=mips3'] |
| 720 }, |
| 703 'library:static': { | 721 'library:static': { |
| 704 'LINKFLAGS': ['-static', '-static-libgcc'] | 722 'LINKFLAGS': ['-static', '-static-libgcc'] |
| 705 }, | 723 }, |
| 706 'mipsabi:softfloat': { | 724 'mipsabi:softfloat': { |
| 707 'CCFLAGS': ['-msoft-float'], | 725 'CCFLAGS': ['-msoft-float'], |
| 708 'LINKFLAGS': ['-msoft-float'] | 726 'LINKFLAGS': ['-msoft-float'] |
| 709 }, | 727 }, |
| 710 'mipsabi:hardfloat': { | 728 'mipsabi:hardfloat': { |
| 711 'CCFLAGS': ['-mhard-float'], | 729 'CCFLAGS': ['-mhard-float'], |
| 712 'LINKFLAGS': ['-mhard-float'] | 730 'LINKFLAGS': ['-mhard-float'] |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 'values': ['hard', 'softfp', 'soft'], | 1119 'values': ['hard', 'softfp', 'soft'], |
| 1102 'default': 'softfp', | 1120 'default': 'softfp', |
| 1103 'help': 'generate calling conventiont according to selected ARM EABI variant
' | 1121 'help': 'generate calling conventiont according to selected ARM EABI variant
' |
| 1104 }, | 1122 }, |
| 1105 'mipsabi': { | 1123 'mipsabi': { |
| 1106 'values': ['hardfloat', 'softfloat', 'none'], | 1124 'values': ['hardfloat', 'softfloat', 'none'], |
| 1107 'default': 'hardfloat', | 1125 'default': 'hardfloat', |
| 1108 'help': 'generate calling conventiont according to selected mips ABI' | 1126 'help': 'generate calling conventiont according to selected mips ABI' |
| 1109 }, | 1127 }, |
| 1110 'mips_arch_variant': { | 1128 'mips_arch_variant': { |
| 1111 'values': ['mips32r2', 'mips32r1'], | 1129 'values': ['mips32r2', 'mips32r1', 'loongson'], |
| 1112 'default': 'mips32r2', | 1130 'default': 'mips32r2', |
| 1113 'help': 'mips variant' | 1131 'help': 'mips variant' |
| 1114 }, | 1132 }, |
| 1115 'compress_startup_data': { | 1133 'compress_startup_data': { |
| 1116 'values': ['off', 'bz2'], | 1134 'values': ['off', 'bz2'], |
| 1117 'default': 'off', | 1135 'default': 'off', |
| 1118 'help': 'compress startup data (snapshot) [Linux only]' | 1136 'help': 'compress startup data (snapshot) [Linux only]' |
| 1119 }, | 1137 }, |
| 1120 'vfp3': { | 1138 'vfp3': { |
| 1121 'values': ['on', 'off'], | 1139 'values': ['on', 'off'], |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1560 # version of scons. Also, there's a bug in some revisions that | 1578 # version of scons. Also, there's a bug in some revisions that |
| 1561 # doesn't allow this flag to be set, so we swallow any exceptions. | 1579 # doesn't allow this flag to be set, so we swallow any exceptions. |
| 1562 # Lovely. | 1580 # Lovely. |
| 1563 try: | 1581 try: |
| 1564 SetOption('warn', 'no-deprecated') | 1582 SetOption('warn', 'no-deprecated') |
| 1565 except: | 1583 except: |
| 1566 pass | 1584 pass |
| 1567 | 1585 |
| 1568 | 1586 |
| 1569 Build() | 1587 Build() |
| OLD | NEW |