OLD | NEW |
---|---|
1 # Copyright 2011 the V8 project authors. All rights reserved. | 1 # Copyright 2011 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
87 'CXXFLAGS': ['-fvisibility=hidden'] | 87 'CXXFLAGS': ['-fvisibility=hidden'] |
88 }, | 88 }, |
89 'strictaliasing:off': { | 89 'strictaliasing:off': { |
90 'CCFLAGS': ['-fno-strict-aliasing'] | 90 'CCFLAGS': ['-fno-strict-aliasing'] |
91 }, | 91 }, |
92 'mode:debug': { | 92 'mode:debug': { |
93 'CCFLAGS': ['-g', '-O0'], | 93 'CCFLAGS': ['-g', '-O0'], |
94 'CPPDEFINES': ['ENABLE_DISASSEMBLER', 'DEBUG'], | 94 'CPPDEFINES': ['ENABLE_DISASSEMBLER', 'DEBUG'], |
95 }, | 95 }, |
96 'mode:release': { | 96 'mode:release': { |
97 'CCFLAGS': ['-O3', '-fomit-frame-pointer', '-fdata-sections', | 97 'CCFLAGS': ['-O3', '-g'], |
Erik Corry
2011/11/07 16:35:25
You probably do not want to commit this.
| |
98 '-ffunction-sections'], | |
99 }, | 98 }, |
100 'os:linux': { | 99 'os:linux': { |
101 'CCFLAGS': ['-ansi'] + GCC_EXTRA_CCFLAGS, | 100 'CCFLAGS': ['-ansi'] + GCC_EXTRA_CCFLAGS, |
102 'library:shared': { | 101 'library:shared': { |
103 'CPPDEFINES': ['V8_SHARED'], | 102 'CPPDEFINES': ['V8_SHARED'], |
104 'LIBS': ['pthread'] | 103 'LIBS': ['pthread'] |
105 } | 104 } |
106 }, | 105 }, |
107 'os:macos': { | 106 'os:macos': { |
108 'CCFLAGS': ['-ansi', '-mmacosx-version-min=10.4'], | 107 'CCFLAGS': ['-ansi', '-mmacosx-version-min=10.4'], |
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1542 # version of scons. Also, there's a bug in some revisions that | 1541 # version of scons. Also, there's a bug in some revisions that |
1543 # doesn't allow this flag to be set, so we swallow any exceptions. | 1542 # doesn't allow this flag to be set, so we swallow any exceptions. |
1544 # Lovely. | 1543 # Lovely. |
1545 try: | 1544 try: |
1546 SetOption('warn', 'no-deprecated') | 1545 SetOption('warn', 'no-deprecated') |
1547 except: | 1546 except: |
1548 pass | 1547 pass |
1549 | 1548 |
1550 | 1549 |
1551 Build() | 1550 Build() |
OLD | NEW |