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

Side by Side Diff: SConstruct

Issue 4012: Add compilation flags for optimizing samples built in release... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 3 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2008 the V8 project authors. All rights reserved. 1 # Copyright 2008 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 '/NXCOMPAT', '/IGNORE:4221'], 70 '/NXCOMPAT', '/IGNORE:4221'],
71 'ARFLAGS': ['/NOLOGO'], 71 'ARFLAGS': ['/NOLOGO'],
72 'CCPDBFLAGS': ['/Zi'] 72 'CCPDBFLAGS': ['/Zi']
73 }, 73 },
74 'mode:debug': { 74 'mode:debug': {
75 'CCFLAGS': ['/Od', '/Gm', '/MTd'], 75 'CCFLAGS': ['/Od', '/Gm', '/MTd'],
76 'CPPDEFINES': ['_DEBUG', 'ENABLE_DISASSEMBLER', 'DEBUG'], 76 'CPPDEFINES': ['_DEBUG', 'ENABLE_DISASSEMBLER', 'DEBUG'],
77 'LINKFLAGS': ['/DEBUG'] 77 'LINKFLAGS': ['/DEBUG']
78 }, 78 },
79 'mode:release': { 79 'mode:release': {
80 'CCFLAGS': ['/Ox', '/MT', '/Ob2', '/Oi', '/Oy'], 80 'CCFLAGS': ['/Ox', '/MT'],
81 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'] 81 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF']
82 } 82 }
83 } 83 }
84 } 84 }
85 85
86 86
87 V8_EXTRA_FLAGS = { 87 V8_EXTRA_FLAGS = {
88 'gcc': { 88 'gcc': {
89 'all': { 89 'all': {
90 'CXXFLAGS': [], #['-fvisibility=hidden'], 90 'CXXFLAGS': [], #['-fvisibility=hidden'],
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 }, 180 },
181 'gcc': { 181 'gcc': {
182 'all': { 182 'all': {
183 'LIBS': ['pthread'], 183 'LIBS': ['pthread'],
184 'LIBPATH': ['.'] 184 'LIBPATH': ['.']
185 }, 185 },
186 'wordsize:64': { 186 'wordsize:64': {
187 'CCFLAGS': ['-m32'], 187 'CCFLAGS': ['-m32'],
188 'LINKFLAGS': ['-m32'] 188 'LINKFLAGS': ['-m32']
189 }, 189 },
190 'mode:release': {
191 'CCFLAGS': ['-O2']
192 },
190 'mode:debug': { 193 'mode:debug': {
191 'CCFLAGS': ['-g', '-O0'] 194 'CCFLAGS': ['-g', '-O0']
192 } 195 }
193 }, 196 },
194 'msvc': { 197 'msvc': {
195 'all': { 198 'all': {
196 'CCFLAGS': ['/nologo'], 199 'CCFLAGS': ['/nologo'],
197 }, 200 },
198 'library:shared': { 201 'library:shared': {
199 'CPPDEFINES': ['USING_V8_SHARED'] 202 'CPPDEFINES': ['USING_V8_SHARED']
200 }, 203 },
201 'mode:release': { 204 'mode:release': {
202 'CCFLAGS': ['/MT'], 205 'CCFLAGS': ['/Ox', '/MT'],
206 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF']
203 }, 207 },
204 'mode:debug': { 208 'mode:debug': {
205 'CCFLAGS': ['/MTd'] 209 'CCFLAGS': ['/Od', '/MTd'],
210 'LINKFLAGS': ['/DEBUG']
206 } 211 }
207 } 212 }
208 } 213 }
209 214
210 215
211 SUFFIXES = { 216 SUFFIXES = {
212 'release': '', 217 'release': '',
213 'debug': '_g' 218 'debug': '_g'
214 } 219 }
215 220
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 # version of scons. Also, there's a bug in some revisions that 530 # version of scons. Also, there's a bug in some revisions that
526 # doesn't allow this flag to be set, so we swallow any exceptions. 531 # doesn't allow this flag to be set, so we swallow any exceptions.
527 # Lovely. 532 # Lovely.
528 try: 533 try:
529 SetOption('warn', 'no-deprecated') 534 SetOption('warn', 'no-deprecated')
530 except: 535 except:
531 pass 536 pass
532 537
533 538
534 Build() 539 Build()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698