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

Side by Side Diff: third_party/tcmalloc/BUILD.gn

Issue 2964133002: Exclude Observatory assets from PRODUCT build dart, dart_precompiled_runtime (Closed)
Patch Set: Addressed comments Created 3 years, 5 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
« no previous file with comments | « runtime/runtime_args.gni ('k') | tools/gn.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 config("internal_config") { 5 config("internal_config") {
6 visibility = [ ":*" ] # Only targets in this file can depend on this. 6 visibility = [ ":*" ] # Only targets in this file can depend on this.
7 cflags = [ 7 cflags = [
8 "-Wall", 8 "-Wall",
9 "-Wextra", 9 "-Wextra",
10 "-Wno-missing-field-initializers", 10 "-Wno-missing-field-initializers",
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 # Disable the heap checker in tcmalloc. 86 # Disable the heap checker in tcmalloc.
87 defines = [ 87 defines = [
88 "ENABLE_EMERGENCY_MALLOC", 88 "ENABLE_EMERGENCY_MALLOC",
89 "NO_HEAP_CHECK", 89 "NO_HEAP_CHECK",
90 90
91 # Disable debug even in a Dart Debug build. It is too slow. 91 # Disable debug even in a Dart Debug build. It is too slow.
92 "NDEBUG", 92 "NDEBUG",
93 ] 93 ]
94 94
95 # Disable stack sampling for heap profiling in Product builds.
96 if (is_product) { 95 if (is_product) {
96 # Disable stack sampling for heap profiling in Product builds.
97 defines += [ "NO_TCMALLOC_SAMPLES" ] 97 defines += [ "NO_TCMALLOC_SAMPLES" ]
98
99 # To override the C library functions, we can't hide symbols.
100 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
98 } 101 }
99 102
100 cflags = [ 103 cflags = [
101 "-Wnon-virtual-dtor", 104 "-Wnon-virtual-dtor",
102 "-Woverloaded-virtual", 105 "-Woverloaded-virtual",
103 "-fno-rtti", 106 "-fno-rtti",
104 "-fpermissive", 107 "-fpermissive",
105 ] 108 ]
106 109
107 if (!is_clang) { 110 if (!is_clang) {
(...skipping 12 matching lines...) Expand all
120 "gperftools/src/base/thread_lister.h", 123 "gperftools/src/base/thread_lister.h",
121 "gperftools/src/profile-handler.cc", 124 "gperftools/src/profile-handler.cc",
122 "gperftools/src/profile-handler.h", 125 "gperftools/src/profile-handler.h",
123 "gperftools/src/profiledata.cc", 126 "gperftools/src/profiledata.cc",
124 "gperftools/src/profiledata.h", 127 "gperftools/src/profiledata.h",
125 "gperftools/src/profiler.cc", 128 "gperftools/src/profiler.cc",
126 ]) 129 ])
127 130
128 sources = tcmalloc_sources_list.sources 131 sources = tcmalloc_sources_list.sources
129 } 132 }
OLDNEW
« no previous file with comments | « runtime/runtime_args.gni ('k') | tools/gn.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698