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

Side by Side Diff: SConstruct

Issue 9692048: MIPS: Added support for Loongson architectures. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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 | build/common.gypi » ('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 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 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
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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 }, 544 },
539 'arch:x64': { 545 'arch:x64': {
540 'CCFLAGS': ['-m64'], 546 'CCFLAGS': ['-m64'],
541 'LINKFLAGS': ['-m64'] 547 'LINKFLAGS': ['-m64']
542 }, 548 },
543 'arch:mips': { 549 'arch:mips': {
544 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], 550 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'],
545 'mips_arch_variant:mips32r2': { 551 'mips_arch_variant:mips32r2': {
546 'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2'] 552 'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2']
547 }, 553 },
554 'mips_arch_variant:loongson': {
555 'CPPDEFINES': ['_MIPS_ARCH_LOONGSON']
556 },
548 'simulator:none': { 557 'simulator:none': {
549 'CCFLAGS': ['-EL'], 558 'CCFLAGS': ['-EL'],
550 'LINKFLAGS': ['-EL'], 559 'LINKFLAGS': ['-EL'],
551 'mips_arch_variant:mips32r2': { 560 'mips_arch_variant:mips32r2': {
552 'CCFLAGS': ['-mips32r2', '-Wa,-mips32r2'] 561 'CCFLAGS': ['-mips32r2', '-Wa,-mips32r2']
553 }, 562 },
554 'mips_arch_variant:mips32r1': { 563 'mips_arch_variant:mips32r1': {
555 'CCFLAGS': ['-mips32', '-Wa,-mips32'] 564 'CCFLAGS': ['-mips32', '-Wa,-mips32']
556 }, 565 },
566 'mips_arch_variant:loongson': {
567 'CCFLAGS': ['-march=mips3', '-Wa,-march=mips3']
568 },
557 'library:static': { 569 'library:static': {
558 'LINKFLAGS': ['-static', '-static-libgcc'] 570 'LINKFLAGS': ['-static', '-static-libgcc']
559 }, 571 },
560 'mipsabi:softfloat': { 572 'mipsabi:softfloat': {
561 'CCFLAGS': ['-msoft-float'], 573 'CCFLAGS': ['-msoft-float'],
562 'LINKFLAGS': ['-msoft-float'] 574 'LINKFLAGS': ['-msoft-float']
563 }, 575 },
564 'mipsabi:hardfloat': { 576 'mipsabi:hardfloat': {
565 'CCFLAGS': ['-mhard-float'], 577 'CCFLAGS': ['-mhard-float'],
566 'LINKFLAGS': ['-mhard-float'] 578 'LINKFLAGS': ['-mhard-float']
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 }, 702 },
691 'arch:x64': { 703 'arch:x64': {
692 'CCFLAGS': ['-m64'], 704 'CCFLAGS': ['-m64'],
693 'LINKFLAGS': ['-m64'] 705 'LINKFLAGS': ['-m64']
694 }, 706 },
695 'arch:mips': { 707 'arch:mips': {
696 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], 708 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'],
697 'mips_arch_variant:mips32r2': { 709 'mips_arch_variant:mips32r2': {
698 'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2'] 710 'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2']
699 }, 711 },
712 'mips_arch_variant:loongson': {
713 'CPPDEFINES': ['_MIPS_ARCH_LOONGSON']
714 },
700 'simulator:none': { 715 'simulator:none': {
701 'CCFLAGS': ['-EL'], 716 'CCFLAGS': ['-EL'],
702 'LINKFLAGS': ['-EL'], 717 'LINKFLAGS': ['-EL'],
703 'mips_arch_variant:mips32r2': { 718 'mips_arch_variant:mips32r2': {
704 'CCFLAGS': ['-mips32r2', '-Wa,-mips32r2'] 719 'CCFLAGS': ['-mips32r2', '-Wa,-mips32r2']
705 }, 720 },
706 'mips_arch_variant:mips32r1': { 721 'mips_arch_variant:mips32r1': {
707 'CCFLAGS': ['-mips32', '-Wa,-mips32'] 722 'CCFLAGS': ['-mips32', '-Wa,-mips32']
708 }, 723 },
724 'mips_arch_variant:loongson': {
725 'CCFLAGS': ['-march=mips3', '-Wa,-march=mips3']
726 },
709 'library:static': { 727 'library:static': {
710 'LINKFLAGS': ['-static', '-static-libgcc'] 728 'LINKFLAGS': ['-static', '-static-libgcc']
711 }, 729 },
712 'mipsabi:softfloat': { 730 'mipsabi:softfloat': {
713 'CCFLAGS': ['-msoft-float'], 731 'CCFLAGS': ['-msoft-float'],
714 'LINKFLAGS': ['-msoft-float'] 732 'LINKFLAGS': ['-msoft-float']
715 }, 733 },
716 'mipsabi:hardfloat': { 734 'mipsabi:hardfloat': {
717 'CCFLAGS': ['-mhard-float'], 735 'CCFLAGS': ['-mhard-float'],
718 'LINKFLAGS': ['-mhard-float'] 736 'LINKFLAGS': ['-mhard-float']
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 'values': ['hard', 'softfp', 'soft'], 1125 'values': ['hard', 'softfp', 'soft'],
1108 'default': 'softfp', 1126 'default': 'softfp',
1109 'help': 'generate calling conventiont according to selected ARM EABI variant ' 1127 'help': 'generate calling conventiont according to selected ARM EABI variant '
1110 }, 1128 },
1111 'mipsabi': { 1129 'mipsabi': {
1112 'values': ['hardfloat', 'softfloat', 'none'], 1130 'values': ['hardfloat', 'softfloat', 'none'],
1113 'default': 'hardfloat', 1131 'default': 'hardfloat',
1114 'help': 'generate calling conventiont according to selected mips ABI' 1132 'help': 'generate calling conventiont according to selected mips ABI'
1115 }, 1133 },
1116 'mips_arch_variant': { 1134 'mips_arch_variant': {
1117 'values': ['mips32r2', 'mips32r1'], 1135 'values': ['mips32r2', 'mips32r1', 'loongson'],
1118 'default': 'mips32r2', 1136 'default': 'mips32r2',
1119 'help': 'mips variant' 1137 'help': 'mips variant'
1120 }, 1138 },
1121 'compress_startup_data': { 1139 'compress_startup_data': {
1122 'values': ['off', 'bz2'], 1140 'values': ['off', 'bz2'],
1123 'default': 'off', 1141 'default': 'off',
1124 'help': 'compress startup data (snapshot) [Linux only]' 1142 'help': 'compress startup data (snapshot) [Linux only]'
1125 }, 1143 },
1126 'vfp3': { 1144 'vfp3': {
1127 'values': ['on', 'off'], 1145 'values': ['on', 'off'],
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
1566 # version of scons. Also, there's a bug in some revisions that 1584 # version of scons. Also, there's a bug in some revisions that
1567 # doesn't allow this flag to be set, so we swallow any exceptions. 1585 # doesn't allow this flag to be set, so we swallow any exceptions.
1568 # Lovely. 1586 # Lovely.
1569 try: 1587 try:
1570 SetOption('warn', 'no-deprecated') 1588 SetOption('warn', 'no-deprecated')
1571 except: 1589 except:
1572 pass 1590 pass
1573 1591
1574 1592
1575 Build() 1593 Build()
OLDNEW
« no previous file with comments | « no previous file | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698