OLD | NEW |
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 defines += [ "NO_TCMALLOC_SAMPLES" ] | 94 defines += [ "NO_TCMALLOC_SAMPLES" ] |
95 } | 95 } |
96 | 96 |
97 cflags = [ | 97 cflags = [ |
98 "-Wnon-virtual-dtor", | 98 "-Wnon-virtual-dtor", |
99 "-Woverloaded-virtual", | 99 "-Woverloaded-virtual", |
100 "-fno-rtti", | 100 "-fno-rtti", |
101 "-fpermissive", | 101 "-fpermissive", |
102 ] | 102 ] |
103 | 103 |
104 if (!is_clang && current_cpu == "x86") { | 104 if (!is_clang) { |
105 cflags += [ "-Wno-format" ] | 105 cflags += [ "-Wno-format" ] |
106 } | 106 } |
107 | 107 |
108 set_sources_assignment_filter([ | 108 set_sources_assignment_filter([ |
109 # No debug allocator. | 109 # No debug allocator. |
110 "gperftools/src/debugallocation.cc", | 110 "gperftools/src/debugallocation.cc", |
111 | 111 |
112 # Not needed when using emergency malloc. | 112 # Not needed when using emergency malloc. |
113 "gperftools/src/fake_stacktrace_scope.cc", | 113 "gperftools/src/fake_stacktrace_scope.cc", |
114 | 114 |
115 # Not using the cpuprofiler | 115 # Not using the cpuprofiler |
116 "gperftools/src/base/thread_lister.c", | 116 "gperftools/src/base/thread_lister.c", |
117 "gperftools/src/base/thread_lister.h", | 117 "gperftools/src/base/thread_lister.h", |
118 "gperftools/src/profile-handler.cc", | 118 "gperftools/src/profile-handler.cc", |
119 "gperftools/src/profile-handler.h", | 119 "gperftools/src/profile-handler.h", |
120 "gperftools/src/profiledata.cc", | 120 "gperftools/src/profiledata.cc", |
121 "gperftools/src/profiledata.h", | 121 "gperftools/src/profiledata.h", |
122 "gperftools/src/profiler.cc", | 122 "gperftools/src/profiler.cc", |
123 ]) | 123 ]) |
124 | 124 |
125 sources = tcmalloc_sources_list.sources | 125 sources = tcmalloc_sources_list.sources |
126 } | 126 } |
OLD | NEW |