| OLD | NEW | 
|    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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   46       'CCFLAGS':      ['$DIALECTFLAGS', '$WARNINGFLAGS', |   46       'CCFLAGS':      ['$DIALECTFLAGS', '$WARNINGFLAGS', | 
|   47           '-fno-strict-aliasing'], |   47           '-fno-strict-aliasing'], | 
|   48       'CXXFLAGS':     ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'], |   48       'CXXFLAGS':     ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'], | 
|   49       'LIBS':         ['pthread'] |   49       'LIBS':         ['pthread'] | 
|   50     }, |   50     }, | 
|   51     'mode:debug': { |   51     'mode:debug': { | 
|   52       'CCFLAGS':      ['-g', '-O0'], |   52       'CCFLAGS':      ['-g', '-O0'], | 
|   53       'CPPDEFINES':   ['ENABLE_DISASSEMBLER', 'DEBUG'] |   53       'CPPDEFINES':   ['ENABLE_DISASSEMBLER', 'DEBUG'] | 
|   54     }, |   54     }, | 
|   55     'mode:release': { |   55     'mode:release': { | 
|   56       'CCFLAGS':      ['-O2'] |   56       'CCFLAGS':      ['-O9', '-mtune=nocona', '-march=pentium'] | 
|   57     }, |   57     }, | 
|   58     'wordsize:64': { |   58     'wordsize:64': { | 
|   59       'CCFLAGS':      ['-m32'], |   59       'CCFLAGS':      ['-m32'], | 
|   60       'LINKFLAGS':    ['-m32'] |   60       'LINKFLAGS':    ['-m32'] | 
|   61     } |   61     } | 
|   62   }, |   62   }, | 
|   63   'msvc': { |   63   'msvc': { | 
|   64     'all': { |   64     'all': { | 
|   65       'DIALECTFLAGS': ['/nologo'], |   65       'DIALECTFLAGS': ['/nologo'], | 
|   66       'CCFLAGS':      ['$DIALECTFLAGS', '$WARNINGFLAGS'], |   66       'CCFLAGS':      ['$DIALECTFLAGS', '$WARNINGFLAGS'], | 
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  130     'library:shared': { |  130     'library:shared': { | 
|  131       'CPPDEFINES':   ['BUILDING_V8_SHARED'] |  131       'CPPDEFINES':   ['BUILDING_V8_SHARED'] | 
|  132     } |  132     } | 
|  133   } |  133   } | 
|  134 } |  134 } | 
|  135  |  135  | 
|  136  |  136  | 
|  137 DTOA_EXTRA_FLAGS = { |  137 DTOA_EXTRA_FLAGS = { | 
|  138   'gcc': { |  138   'gcc': { | 
|  139     'all': { |  139     'all': { | 
|  140       'WARNINGFLAGS': ['-Werror'] |  140       'WARNINGFLAGS': ['-Werror', '-fno-strict-aliasing'] | 
|  141     } |  141     } | 
|  142   }, |  142   }, | 
|  143   'msvc': { |  143   'msvc': { | 
|  144     'all': { |  144     'all': { | 
|  145       'WARNINGFLAGS': ['/WX', '/wd4018', '/wd4244'] |  145       'WARNINGFLAGS': ['/WX', '/wd4018', '/wd4244'] | 
|  146     } |  146     } | 
|  147   } |  147   } | 
|  148 } |  148 } | 
|  149  |  149  | 
|  150  |  150  | 
| (...skipping 30 matching lines...) Expand all  Loading... | 
|  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': { |  190     'mode:release': { | 
|  191       'CCFLAGS':      ['-O2'] |  191       'CCFLAGS':      ['-O2', '-mtune=nocona', '-march=pentium'] | 
|  192     }, |  192     }, | 
|  193     'mode:debug': { |  193     'mode:debug': { | 
|  194       'CCFLAGS':      ['-g', '-O0'] |  194       'CCFLAGS':      ['-g', '-O0'] | 
|  195     } |  195     } | 
|  196   }, |  196   }, | 
|  197   'msvc': { |  197   'msvc': { | 
|  198     'all': { |  198     'all': { | 
|  199       'CCFLAGS': ['/nologo'], |  199       'CCFLAGS': ['/nologo'], | 
|  200     }, |  200     }, | 
|  201     'library:shared': { |  201     'library:shared': { | 
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  542 # version of scons.  Also, there's a bug in some revisions that |  542 # 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. |  543 # doesn't allow this flag to be set, so we swallow any exceptions. | 
|  544 # Lovely. |  544 # Lovely. | 
|  545 try: |  545 try: | 
|  546   SetOption('warn', 'no-deprecated') |  546   SetOption('warn', 'no-deprecated') | 
|  547 except: |  547 except: | 
|  548   pass |  548   pass | 
|  549  |  549  | 
|  550  |  550  | 
|  551 Build() |  551 Build() | 
| OLD | NEW |