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

Side by Side Diff: SConstruct

Issue 6236: Allow gcc to use strict-aliasing rules to control pointer aliasing when... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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/api.h » ('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 25 matching lines...) Expand all
36 import js2c, utils 36 import js2c, utils
37 37
38 38
39 LIBRARY_FLAGS = { 39 LIBRARY_FLAGS = {
40 'all': { 40 'all': {
41 'CPPDEFINES': ['ENABLE_LOGGING_AND_PROFILING'] 41 'CPPDEFINES': ['ENABLE_LOGGING_AND_PROFILING']
42 }, 42 },
43 'gcc': { 43 'gcc': {
44 'all': { 44 'all': {
45 'DIALECTFLAGS': ['-ansi'], 45 'DIALECTFLAGS': ['-ansi'],
46 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS', 46 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'],
47 '-fno-strict-aliasing'],
48 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'], 47 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'],
49 'LIBS': ['pthread'] 48 'LIBS': ['pthread']
50 }, 49 },
51 'mode:debug': { 50 'mode:debug': {
52 'CCFLAGS': ['-g', '-O0'], 51 'CCFLAGS': ['-g', '-O0'],
53 'CPPDEFINES': ['ENABLE_DISASSEMBLER', 'DEBUG'] 52 'CPPDEFINES': ['ENABLE_DISASSEMBLER', 'DEBUG']
54 }, 53 },
55 'mode:release': { 54 'mode:release': {
56 'CCFLAGS': ['-O9'] 55 'CCFLAGS': ['-O3']
Kasper Lund 2008/10/03 12:53:25 I trust there are no other references to O9 in thi
57 }, 56 },
58 'wordsize:64': { 57 'wordsize:64': {
59 'CCFLAGS': ['-m32'], 58 'CCFLAGS': ['-m32'],
60 'LINKFLAGS': ['-m32'] 59 'LINKFLAGS': ['-m32']
61 } 60 }
62 }, 61 },
63 'msvc': { 62 'msvc': {
64 'all': { 63 'all': {
65 'DIALECTFLAGS': ['/nologo'], 64 'DIALECTFLAGS': ['/nologo'],
66 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], 65 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'],
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 # version of scons. Also, there's a bug in some revisions that 541 # version of scons. Also, there's a bug in some revisions that
543 # doesn't allow this flag to be set, so we swallow any exceptions. 542 # doesn't allow this flag to be set, so we swallow any exceptions.
544 # Lovely. 543 # Lovely.
545 try: 544 try:
546 SetOption('warn', 'no-deprecated') 545 SetOption('warn', 'no-deprecated')
547 except: 546 except:
548 pass 547 pass
549 548
550 549
551 Build() 550 Build()
OLDNEW
« no previous file with comments | « no previous file | src/api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698