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

Side by Side Diff: SConstruct

Issue 554131: Enable assertions and debugging code in the release... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/issue555/
Patch Set: Created 10 years, 10 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 | src/SConscript » ('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 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 'profilingsupport:on': { 106 'profilingsupport:on': {
107 'CPPDEFINES': ['ENABLE_LOGGING_AND_PROFILING'], 107 'CPPDEFINES': ['ENABLE_LOGGING_AND_PROFILING'],
108 }, 108 },
109 'debuggersupport:on': { 109 'debuggersupport:on': {
110 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT'], 110 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT'],
111 } 111 }
112 }, 112 },
113 'gcc': { 113 'gcc': {
114 'all': { 114 'all': {
115 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], 115 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'],
116 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'], 116 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions',
117 '-fno-strict-aliasing'],
117 }, 118 },
118 'visibility:hidden': { 119 'visibility:hidden': {
119 # Use visibility=default to disable this. 120 # Use visibility=default to disable this.
120 'CXXFLAGS': ['-fvisibility=hidden'] 121 'CXXFLAGS': ['-fvisibility=hidden']
121 }, 122 },
122 'mode:debug': { 123 'mode:debug': {
123 'CCFLAGS': ['-g', '-O0'], 124 'CCFLAGS': ['-g', '-O0'],
124 'CPPDEFINES': ['ENABLE_DISASSEMBLER', 'DEBUG'], 125 'CPPDEFINES': ['ENABLE_DISASSEMBLER', 'DEBUG'],
125 'os:android': { 126 'os:android': {
126 'CCFLAGS': ['-mthumb'] 127 'CCFLAGS': ['-mthumb']
127 } 128 }
128 }, 129 },
129 'mode:release': { 130 'mode:release': {
130 'CCFLAGS': ['-O3', '-fomit-frame-pointer', '-fdata-sections', 131 'CCFLAGS': ['-O3', '-fomit-frame-pointer', '-fdata-sections',
131 '-ffunction-sections'], 132 '-ffunction-sections'],
133 'CPPDEFINES': ['DEBUG'],
132 'os:android': { 134 'os:android': {
133 'CCFLAGS': ['-mthumb', '-Os'], 135 'CCFLAGS': ['-mthumb', '-Os'],
134 'CPPDEFINES': ['SK_RELEASE', 'NDEBUG'] 136 'CPPDEFINES': ['SK_RELEASE']
135 } 137 }
136 }, 138 },
137 'os:linux': { 139 'os:linux': {
138 'CCFLAGS': ['-ansi'] + GCC_EXTRA_CCFLAGS, 140 'CCFLAGS': ['-ansi'] + GCC_EXTRA_CCFLAGS,
139 'library:shared': { 141 'library:shared': {
140 'CPPDEFINES': ['V8_SHARED'], 142 'CPPDEFINES': ['V8_SHARED'],
141 'LIBS': ['pthread'] 143 'LIBS': ['pthread']
142 } 144 }
143 }, 145 },
144 'os:macos': { 146 'os:macos': {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 'LINKFLAGS': ['/DEBUG'], 226 'LINKFLAGS': ['/DEBUG'],
225 'msvcrt:static': { 227 'msvcrt:static': {
226 'CCFLAGS': ['/MTd'] 228 'CCFLAGS': ['/MTd']
227 }, 229 },
228 'msvcrt:shared': { 230 'msvcrt:shared': {
229 'CCFLAGS': ['/MDd'] 231 'CCFLAGS': ['/MDd']
230 } 232 }
231 }, 233 },
232 'mode:release': { 234 'mode:release': {
233 'CCFLAGS': ['/O2'], 235 'CCFLAGS': ['/O2'],
236 'CPPDEFINES': ['_DEBUG', 'DEBUG'],
234 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'], 237 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'],
235 'msvcrt:static': { 238 'msvcrt:static': {
236 'CCFLAGS': ['/MT'] 239 'CCFLAGS': ['/MT']
237 }, 240 },
238 'msvcrt:shared': { 241 'msvcrt:shared': {
239 'CCFLAGS': ['/MD'] 242 'CCFLAGS': ['/MD']
240 }, 243 },
241 'msvcltcg:on': { 244 'msvcltcg:on': {
242 'CCFLAGS': ['/GL'], 245 'CCFLAGS': ['/GL'],
243 'LINKFLAGS': ['/LTCG'], 246 'LINKFLAGS': ['/LTCG'],
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 }, 373 },
371 'os:android': { 374 'os:android': {
372 'CPPDEFINES': ['ANDROID', '__ARM_ARCH_5__', '__ARM_ARCH_5T__', 375 'CPPDEFINES': ['ANDROID', '__ARM_ARCH_5__', '__ARM_ARCH_5T__',
373 '__ARM_ARCH_5E__', '__ARM_ARCH_5TE__'], 376 '__ARM_ARCH_5E__', '__ARM_ARCH_5TE__'],
374 'CCFLAGS': ANDROID_FLAGS, 377 'CCFLAGS': ANDROID_FLAGS,
375 'CPPPATH': ANDROID_INCLUDES, 378 'CPPPATH': ANDROID_INCLUDES,
376 'LIBPATH': [ANDROID_TOP + '/out/target/product/generic/obj/lib'], 379 'LIBPATH': [ANDROID_TOP + '/out/target/product/generic/obj/lib'],
377 'LINKFLAGS': ANDROID_LINKFLAGS, 380 'LINKFLAGS': ANDROID_LINKFLAGS,
378 'LIBS': ['log', 'c', 'stdc++', 'm'], 381 'LIBS': ['log', 'c', 'stdc++', 'm'],
379 'mode:release': { 382 'mode:release': {
380 'CPPDEFINES': ['SK_RELEASE', 'NDEBUG'] 383 'CPPDEFINES': ['SK_RELEASE']
381 } 384 }
382 }, 385 },
383 }, 386 },
384 'msvc': { 387 'msvc': {
385 'all': { 388 'all': {
386 'CPPDEFINES': ['_HAS_EXCEPTIONS=0'], 389 'CPPDEFINES': ['_HAS_EXCEPTIONS=0'],
387 'LIBS': ['winmm', 'ws2_32'] 390 'LIBS': ['winmm', 'ws2_32']
388 }, 391 },
389 'library:shared': { 392 'library:shared': {
390 'CPPDEFINES': ['USING_V8_SHARED'] 393 'CPPDEFINES': ['USING_V8_SHARED']
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 }, 432 },
430 'os:android': { 433 'os:android': {
431 'CPPDEFINES': ['ANDROID', '__ARM_ARCH_5__', '__ARM_ARCH_5T__', 434 'CPPDEFINES': ['ANDROID', '__ARM_ARCH_5__', '__ARM_ARCH_5T__',
432 '__ARM_ARCH_5E__', '__ARM_ARCH_5TE__'], 435 '__ARM_ARCH_5E__', '__ARM_ARCH_5TE__'],
433 'CCFLAGS': ANDROID_FLAGS, 436 'CCFLAGS': ANDROID_FLAGS,
434 'CPPPATH': ANDROID_INCLUDES, 437 'CPPPATH': ANDROID_INCLUDES,
435 'LIBPATH': [ANDROID_TOP + '/out/target/product/generic/obj/lib'], 438 'LIBPATH': [ANDROID_TOP + '/out/target/product/generic/obj/lib'],
436 'LINKFLAGS': ANDROID_LINKFLAGS, 439 'LINKFLAGS': ANDROID_LINKFLAGS,
437 'LIBS': ['log', 'c', 'stdc++', 'm'], 440 'LIBS': ['log', 'c', 'stdc++', 'm'],
438 'mode:release': { 441 'mode:release': {
439 'CPPDEFINES': ['SK_RELEASE', 'NDEBUG'] 442 'CPPDEFINES': ['SK_RELEASE']
440 } 443 }
441 }, 444 },
442 'arch:ia32': { 445 'arch:ia32': {
443 'CCFLAGS': ['-m32'], 446 'CCFLAGS': ['-m32'],
444 'LINKFLAGS': ['-m32'] 447 'LINKFLAGS': ['-m32']
445 }, 448 },
446 'arch:x64': { 449 'arch:x64': {
447 'CCFLAGS': ['-m64'], 450 'CCFLAGS': ['-m64'],
448 'LINKFLAGS': ['-m64'] 451 'LINKFLAGS': ['-m64']
449 }, 452 },
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 # version of scons. Also, there's a bug in some revisions that 1022 # version of scons. Also, there's a bug in some revisions that
1020 # doesn't allow this flag to be set, so we swallow any exceptions. 1023 # doesn't allow this flag to be set, so we swallow any exceptions.
1021 # Lovely. 1024 # Lovely.
1022 try: 1025 try:
1023 SetOption('warn', 'no-deprecated') 1026 SetOption('warn', 'no-deprecated')
1024 except: 1027 except:
1025 pass 1028 pass
1026 1029
1027 1030
1028 Build() 1031 Build()
OLDNEW
« no previous file with comments | « no previous file | src/SConscript » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698