Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 { | 5 { |
| 6 'target_defaults': { | |
| 7 'variables': { | |
| 8 # This code gets run a lot and debugged rarely, so it should be fast | |
| 9 # by default. See http://crbug.com/388949. | |
| 10 'debug_optimize': '2', | |
| 11 'mac_debug_optimization': '2', | |
| 12 # In addition to the above reasons, /Od optimization won't remove symbols | |
|
DaleCurtis
2014/08/04 18:58:17
While true, this comment is probably not relevant
willchan no longer on Chromium
2014/08/04 19:05:22
Done.
| |
| 13 # that are under "if (0)" style sections. Which lead to link time errors | |
| 14 # when for example it tries to link an ARM symbol on X86. | |
| 15 'win_debug_Optimization': '2', | |
| 16 # Run time checks are incompatible with any level of optimizations. | |
| 17 'win_debug_RuntimeChecks': '0', | |
| 18 'conditions': [ | |
| 19 ['OS == "win"', { | |
| 20 # Setting the optimizations to 'speed' or to 'max' results in a lot of | |
|
DaleCurtis
2014/08/04 18:58:17
I'm not sure you want this setting, it's only need
willchan no longer on Chromium
2014/08/04 19:05:22
Done.
| |
| 21 # unresolved symbols. The only supported mode is 'size' (see | |
| 22 # crbug.com/264459). | |
| 23 'optimize' :'size', | |
| 24 }], | |
| 25 ], | |
| 26 }, | |
| 27 }, | |
| 6 'variables': { | 28 'variables': { |
| 7 'tcmalloc_dir': '../../third_party/tcmalloc/chromium', | 29 'tcmalloc_dir': '../../third_party/tcmalloc/chromium', |
| 8 'use_vtable_verify%': 0, | 30 'use_vtable_verify%': 0, |
| 9 }, | 31 }, |
| 10 'targets': [ | 32 'targets': [ |
| 11 # Only executables and not libraries should depend on the | 33 # Only executables and not libraries should depend on the |
| 12 # allocator target; only the application (the final executable) | 34 # allocator target; only the application (the final executable) |
| 13 # knows what allocator makes sense. | 35 # knows what allocator makes sense. |
| 14 { | 36 { |
| 15 'target_name': 'allocator', | 37 'target_name': 'allocator', |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 299 'msvs_settings': { | 321 'msvs_settings': { |
| 300 'VCCLCompilerTool': { | 322 'VCCLCompilerTool': { |
| 301 'RuntimeLibrary': '0', | 323 'RuntimeLibrary': '0', |
| 302 }, | 324 }, |
| 303 }, | 325 }, |
| 304 'variables': { | 326 'variables': { |
| 305 # Provide a way to force disable debugallocation in Debug builds, | 327 # Provide a way to force disable debugallocation in Debug builds, |
| 306 # e.g. for profiling (it's more rare to profile Debug builds, | 328 # e.g. for profiling (it's more rare to profile Debug builds, |
| 307 # but people sometimes need to do that). | 329 # but people sometimes need to do that). |
| 308 'disable_debugallocation%': 0, | 330 'disable_debugallocation%': 0, |
| 309 # This code gets run a lot and debugged rarely, so it should be fast | |
| 310 # by default. See http://crbug.com/388949. | |
| 311 'debug_optimize': 2, | |
| 312 }, | 331 }, |
| 313 'conditions': [ | 332 'conditions': [ |
| 314 # TODO(phajdan.jr): Also enable on Windows. | 333 # TODO(phajdan.jr): Also enable on Windows. |
| 315 ['disable_debugallocation==0 and OS!="win"', { | 334 ['disable_debugallocation==0 and OS!="win"', { |
| 316 'defines': [ | 335 'defines': [ |
| 317 # Use debugallocation for Debug builds to catch problems early | 336 # Use debugallocation for Debug builds to catch problems early |
| 318 # and cleanly, http://crbug.com/30715 . | 337 # and cleanly, http://crbug.com/30715 . |
| 319 'TCMALLOC_FOR_DEBUGALLOCATION', | 338 'TCMALLOC_FOR_DEBUGALLOCATION', |
| 320 ], | 339 ], |
| 321 }], | 340 }], |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 623 'sources': [ | 642 'sources': [ |
| 624 'type_profiler_map_unittest.cc', | 643 'type_profiler_map_unittest.cc', |
| 625 '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h', | 644 '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h', |
| 626 '<(tcmalloc_dir)/src/type_profiler_map.cc', | 645 '<(tcmalloc_dir)/src/type_profiler_map.cc', |
| 627 ], | 646 ], |
| 628 }, | 647 }, |
| 629 ], | 648 ], |
| 630 }], | 649 }], |
| 631 ], | 650 ], |
| 632 } | 651 } |
| OLD | NEW |