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

Side by Side Diff: Source/config.gyp

Issue 133473002: Add blink_gc_plugin variable to enable the clang plugin for checking GC consistency. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 1 #
2 # Copyright (C) 2013 Google Inc. All rights reserved. 2 # Copyright (C) 2013 Google Inc. All rights reserved.
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 14 matching lines...) Expand all
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 # 29 #
30 { 30 {
31 'variables': { 31 'variables': {
32 # If set to 1, doesn't compile debug symbols into webcore reducing the 32 # If set to 1, doesn't compile debug symbols into webcore reducing the
33 # size of the binary and increasing the speed of gdb. gcc only. 33 # size of the binary and increasing the speed of gdb. gcc only.
34 'remove_webcore_debug_symbols%': 0, 34 'remove_webcore_debug_symbols%': 0,
35 # Set to 1 to check GC infrastructure when compiling with clang.
Mads Ager (chromium) 2014/01/10 09:20:50 Maybe write this out a bit more: Set to 1 to enab
zerny-chromium 2014/01/10 09:53:49 Done.
36 # Requires building locally since GOMA doesn't yet support the plugin.
37 'blink_gc_plugin%': 0,
35 }, 38 },
36 'targets': [ 39 'targets': [
37 { 40 {
38 'target_name': 'config', 41 'target_name': 'config',
39 'type': 'none', 42 'type': 'none',
40 'direct_dependent_settings': { 43 'direct_dependent_settings': {
41 'include_dirs': [ 44 'include_dirs': [
42 '.', 45 '.',
43 '..', 46 '..',
44 ], 47 ],
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 # Due to a bug in gcc arm, we get warnings about uninitialized 94 # Due to a bug in gcc arm, we get warnings about uninitialized
92 # timesNewRoman.unstatic.3258 and colorTransparent.unstatic.4879. 95 # timesNewRoman.unstatic.3258 and colorTransparent.unstatic.4879.
93 'cflags': ['-Wno-uninitialized'], 96 'cflags': ['-Wno-uninitialized'],
94 }], 97 }],
95 ['clang==1', { 98 ['clang==1', {
96 'cflags': ['-Wglobal-constructors'], 99 'cflags': ['-Wglobal-constructors'],
97 'xcode_settings': { 100 'xcode_settings': {
98 'WARNING_CFLAGS': ['-Wglobal-constructors'], 101 'WARNING_CFLAGS': ['-Wglobal-constructors'],
99 }, 102 },
100 }], 103 }],
104 # Only enable the blink_gc_plugin when using clang.
105 ['clang==1 and blink_gc_plugin==1', {
106 'cflags': ['<!@(../../../tools/clang/scripts/blink_gc_plugin_flags.sh) '],
Mads Ager (chromium) 2014/01/10 09:20:50 This is dotting its way far outside of the Blink d
zerny-chromium 2014/01/10 09:53:49 Not as far as I can see. Currently the active plug
107 }],
101 ], 108 ],
102 }, 109 },
103 }, 110 },
104 { 111 {
105 'target_name': 'unittest_config', 112 'target_name': 'unittest_config',
106 'type': 'none', 113 'type': 'none',
107 'dependencies': [ 114 'dependencies': [
108 'config', 115 'config',
109 '<(DEPTH)/testing/gmock.gyp:gmock', 116 '<(DEPTH)/testing/gmock.gyp:gmock',
110 '<(DEPTH)/testing/gtest.gyp:gtest', 117 '<(DEPTH)/testing/gtest.gyp:gtest',
111 ], 118 ],
112 'export_dependent_settings': [ 119 'export_dependent_settings': [
113 'config', 120 'config',
114 '<(DEPTH)/testing/gmock.gyp:gmock', 121 '<(DEPTH)/testing/gmock.gyp:gmock',
115 '<(DEPTH)/testing/gtest.gyp:gtest', 122 '<(DEPTH)/testing/gtest.gyp:gtest',
116 ], 123 ],
117 'direct_dependent_settings': { 124 'direct_dependent_settings': {
118 'cflags!': ['-Wglobal-constructors'], 125 'cflags!': ['-Wglobal-constructors'],
119 'xcode_settings': { 126 'xcode_settings': {
120 'WARNING_CFLAGS!': ['-Wglobal-constructors'], 127 'WARNING_CFLAGS!': ['-Wglobal-constructors'],
121 }, 128 },
122 }, 129 },
123 } 130 }
124 ], 131 ],
125 } 132 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698