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

Side by Side Diff: build/common.gypi

Issue 10411047: Type profiler by intercepting 'new' and 'delete' expressions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Support operator delete[]. Created 8 years, 6 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
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 211
212 # Notifications are compiled in by default. Set to 0 to disable. 212 # Notifications are compiled in by default. Set to 0 to disable.
213 'notifications%' : 1, 213 'notifications%' : 1,
214 214
215 # If this is set, the clang plugins used on the buildbot will be used. 215 # If this is set, the clang plugins used on the buildbot will be used.
216 # Run tools/clang/scripts/update.sh to make sure they are compiled. 216 # Run tools/clang/scripts/update.sh to make sure they are compiled.
217 # This causes 'clang_chrome_plugins_flags' to be set. 217 # This causes 'clang_chrome_plugins_flags' to be set.
218 # Has no effect if 'clang' is not set as well. 218 # Has no effect if 'clang' is not set as well.
219 'clang_use_chrome_plugins%': 1, 219 'clang_use_chrome_plugins%': 1,
220 220
221 'clang_allocated_type%': 0,
222
221 # Enable building with ASAN (Clang's -faddress-sanitizer option). 223 # Enable building with ASAN (Clang's -faddress-sanitizer option).
222 # -faddress-sanitizer only works with clang, but asan=1 implies clang=1 224 # -faddress-sanitizer only works with clang, but asan=1 implies clang=1
223 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre sssanitizer 225 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre sssanitizer
224 'asan%': 0, 226 'asan%': 0,
225 227
226 # Set to true to instrument the code with function call logger. 228 # Set to true to instrument the code with function call logger.
227 # See src/third_party/cygprofile/cyg-profile.cc for details. 229 # See src/third_party/cygprofile/cyg-profile.cc for details.
228 'order_profiling%': 0, 230 'order_profiling%': 0,
229 231
230 # Use the provided profiled order file to link Chrome image with it. 232 # Use the provided profiled order file to link Chrome image with it.
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1513 'defines': ['ENABLE_PROMO_RESOURCE_SERVICE=1'], 1515 'defines': ['ENABLE_PROMO_RESOURCE_SERVICE=1'],
1514 }], 1516 }],
1515 ['enable_automation==1', { 1517 ['enable_automation==1', {
1516 'defines': ['ENABLE_AUTOMATION=1'], 1518 'defines': ['ENABLE_AUTOMATION=1'],
1517 }], 1519 }],
1518 ['enable_printing==1', { 1520 ['enable_printing==1', {
1519 'defines': ['ENABLE_PRINTING=1'], 1521 'defines': ['ENABLE_PRINTING=1'],
1520 }], 1522 }],
1521 ], # conditions for 'target_defaults' 1523 ], # conditions for 'target_defaults'
1522 'target_conditions': [ 1524 'target_conditions': [
1525 ['_type=="executable" or _type=="loadable_module"', {
1526 'target_conditions': [
1527 ['_target_name=="mksnapshot" or _target_name=="protoc" or _target_name =="ppGoogleNaClPluginChrome"', {
1528 # Ignore allocated types.
1529 'conditions': [
1530 ['clang==1 and clang_allocated_type==1', {
1531 'dependencies': [
1532 'base/allocator/allocator.gyp:new_delete_type_ignore#target',
1533 ]},
1534 ],
1535 ]}, {
1536 # Store allocated types in TCMalloc's allocated_type_map (extended).
1537 'conditions': [
1538 ['clang==1 and clang_allocated_type==1', {
1539 'dependencies': [
1540 'base/allocator/allocator.gyp:new_delete_type_tcmalloc#target' ,
1541 ]},
1542 ],
1543 ]},
1544 ]
1545 ]},
1546 ],
1523 ['enable_wexit_time_destructors==1', { 1547 ['enable_wexit_time_destructors==1', {
1524 'conditions': [ 1548 'conditions': [
1525 [ 'clang==1', { 1549 [ 'clang==1', {
1526 'cflags': [ 1550 'cflags': [
1527 '-Wexit-time-destructors', 1551 '-Wexit-time-destructors',
1528 ], 1552 ],
1529 'xcode_settings': { 1553 'xcode_settings': {
1530 'WARNING_CFLAGS': [ 1554 'WARNING_CFLAGS': [
1531 '-Wexit-time-destructors', 1555 '-Wexit-time-destructors',
1532 ], 1556 ],
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
2205 # removed when we change to that. (This is also why we don't 2229 # removed when we change to that. (This is also why we don't
2206 # bother fixing all these cases today.) 2230 # bother fixing all these cases today.)
2207 '-Wno-unnamed-type-template-args', 2231 '-Wno-unnamed-type-template-args',
2208 # This (rightyfully) complains about 'override', which we use 2232 # This (rightyfully) complains about 'override', which we use
2209 # heavily. 2233 # heavily.
2210 '-Wno-c++11-extensions', 2234 '-Wno-c++11-extensions',
2211 2235
2212 # Warns on switches on enums that cover all enum values but 2236 # Warns on switches on enums that cover all enum values but
2213 # also contain a default: branch. Chrome is full of that. 2237 # also contain a default: branch. Chrome is full of that.
2214 '-Wno-covered-switch-default', 2238 '-Wno-covered-switch-default',
2239
2240 '-Wno-sometimes-uninitialized',
2241 '-Wno-unused-value',
2242 '-Wno-unused-private-field',
2215 ], 2243 ],
2216 'cflags!': [ 2244 'cflags!': [
2217 # Clang doesn't seem to know know this flag. 2245 # Clang doesn't seem to know know this flag.
2218 '-mfpmath=sse', 2246 '-mfpmath=sse',
2219 ], 2247 ],
2220 }], 2248 }],
2221 ['clang==1 and clang_use_chrome_plugins==1', { 2249 ['clang==1 and clang_use_chrome_plugins==1', {
2222 'cflags': [ 2250 'cflags': [
2223 '<@(clang_chrome_plugins_flags)', 2251 '<@(clang_chrome_plugins_flags)',
2224 ], 2252 ],
2225 }], 2253 }],
2226 ['clang==1 and clang_load!=""', { 2254 ['clang==1 and clang_load!=""', {
2227 'cflags': [ 2255 'cflags': [
2228 '-Xclang', '-load', '-Xclang', '<(clang_load)', 2256 '-Xclang', '-load', '-Xclang', '<(clang_load)',
2229 ], 2257 ],
2230 }], 2258 }],
2231 ['clang==1 and clang_add_plugin!=""', { 2259 ['clang==1 and clang_add_plugin!=""', {
2232 'cflags': [ 2260 'cflags': [
2233 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)', 2261 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)',
2234 ], 2262 ],
2235 }], 2263 }],
2236 ['clang==1 and "<(GENERATOR)"=="ninja"', { 2264 ['clang==1 and "<(GENERATOR)"=="ninja"', {
2237 'cflags': [ 2265 'cflags': [
2238 # See http://crbug.com/110262 2266 # See http://crbug.com/110262
2239 '-fcolor-diagnostics', 2267 '-fcolor-diagnostics',
2240 ], 2268 ],
2241 }], 2269 }],
2270 ['clang==1 and clang_allocated_type==1', {
2271 'cflags_cc!': ['-fno-rtti'],
2272 'cflags_cc+': [
2273 '-frtti',
2274 '-fallocated-type-in-operator-new',
2275 '-I../../base/allocator',
2276 '-include',
2277 'new_delete_type.h',
2278 ],
2279 'defines': ['USE_NEW_DELETE_TYPE'],
2280 }],
2242 ['asan==1', { 2281 ['asan==1', {
2243 'target_conditions': [ 2282 'target_conditions': [
2244 ['_toolset=="target"', { 2283 ['_toolset=="target"', {
2245 'cflags': [ 2284 'cflags': [
2246 '-faddress-sanitizer', 2285 '-faddress-sanitizer',
2247 '-fno-omit-frame-pointer', 2286 '-fno-omit-frame-pointer',
2248 '-w', 2287 '-w',
2249 ], 2288 ],
2250 'ldflags': [ 2289 'ldflags': [
2251 '-faddress-sanitizer', 2290 '-faddress-sanitizer',
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
2644 '-Wno-unused-function', 2683 '-Wno-unused-function',
2645 # See comments on this flag higher up in this file. 2684 # See comments on this flag higher up in this file.
2646 '-Wno-unnamed-type-template-args', 2685 '-Wno-unnamed-type-template-args',
2647 # This (rightyfully) complains about 'override', which we use 2686 # This (rightyfully) complains about 'override', which we use
2648 # heavily. 2687 # heavily.
2649 '-Wno-c++11-extensions', 2688 '-Wno-c++11-extensions',
2650 2689
2651 # Warns on switches on enums that cover all enum values but 2690 # Warns on switches on enums that cover all enum values but
2652 # also contain a default: branch. Chrome is full of that. 2691 # also contain a default: branch. Chrome is full of that.
2653 '-Wno-covered-switch-default', 2692 '-Wno-covered-switch-default',
2693
Dai Mikurube (NOT FULLTIME) 2012/06/15 19:54:34 Add -Wno-unused-private-field here.
2694 '-Wno-sometimes-uninitialized',
2695 '-Wno-unused-value',
2654 ], 2696 ],
2655 }], 2697 }],
2656 ['clang==1 and clang_use_chrome_plugins==1', { 2698 ['clang==1 and clang_use_chrome_plugins==1', {
2657 'OTHER_CFLAGS': [ 2699 'OTHER_CFLAGS': [
2658 '<@(clang_chrome_plugins_flags)', 2700 '<@(clang_chrome_plugins_flags)',
2659 ], 2701 ],
2660 }], 2702 }],
2661 ['clang==1 and clang_load!=""', { 2703 ['clang==1 and clang_load!=""', {
2662 'OTHER_CFLAGS': [ 2704 'OTHER_CFLAGS': [
2663 '-Xclang', '-load', '-Xclang', '<(clang_load)', 2705 '-Xclang', '-load', '-Xclang', '<(clang_load)',
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
3126 # settings in target dicts. SYMROOT is a special case, because many other 3168 # settings in target dicts. SYMROOT is a special case, because many other
3127 # Xcode variables depend on it, including variables such as 3169 # Xcode variables depend on it, including variables such as
3128 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3170 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3129 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3171 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3130 # files to appear (when present) in the UI as actual files and not red 3172 # files to appear (when present) in the UI as actual files and not red
3131 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3173 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3132 # and therefore SYMROOT, needs to be set at the project level. 3174 # and therefore SYMROOT, needs to be set at the project level.
3133 'SYMROOT': '<(DEPTH)/xcodebuild', 3175 'SYMROOT': '<(DEPTH)/xcodebuild',
3134 }, 3176 },
3135 } 3177 }
OLDNEW
« no previous file with comments | « base/allocator/new_delete_type_tcmalloc.cc ('k') | third_party/tcmalloc/chromium/src/allocated_type_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698