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 27 matching lines...) Expand all Loading... |
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'], | 47 '-fno-strict-aliasing'], |
48 'CXXFLAGS': ['-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': ['-O2'] |
57 }, | 57 }, |
58 'wordsize:64': { | 58 'wordsize:64': { |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 # version of scons. Also, there's a bug in some revisions that | 526 # version of scons. Also, there's a bug in some revisions that |
527 # doesn't allow this flag to be set, so we swallow any exceptions. | 527 # doesn't allow this flag to be set, so we swallow any exceptions. |
528 # Lovely. | 528 # Lovely. |
529 try: | 529 try: |
530 SetOption('warn', 'no-deprecated') | 530 SetOption('warn', 'no-deprecated') |
531 except: | 531 except: |
532 pass | 532 pass |
533 | 533 |
534 | 534 |
535 Build() | 535 Build() |
OLD | NEW |