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

Unified Diff: base/allocator/BUILD.gn

Issue 2651043008: Fold most logic from //base/allocator into //base. (Closed)
Patch Set: Clean up. Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/allocator/BUILD.gn
diff --git a/base/allocator/BUILD.gn b/base/allocator/BUILD.gn
index 401519662f3f17d2f249646449eeea1d85241df4..8cdb06161f5c23afb34058f71a449024c5a93d54 100644
--- a/base/allocator/BUILD.gn
+++ b/base/allocator/BUILD.gn
@@ -294,56 +294,16 @@ buildflag_header("features") {
]
}
-if (use_experimental_allocator_shim) {
- # Used to shim malloc symbols on Android. see //base/allocator/README.md.
- config("wrap_malloc_symbols") {
- ldflags = [
- "-Wl,-wrap,calloc",
- "-Wl,-wrap,free",
- "-Wl,-wrap,malloc",
- "-Wl,-wrap,memalign",
- "-Wl,-wrap,posix_memalign",
- "-Wl,-wrap,pvalloc",
- "-Wl,-wrap,realloc",
- "-Wl,-wrap,valloc",
- ]
- }
-
- source_set("unified_allocator_shim") {
- # TODO(primiano): support other platforms, currently this works only on
- # Linux/CrOS/Android. http://crbug.com/550886 .
- configs += [ "//base:base_implementation" ] # for BASE_EXPORT
- visibility = [ "//base:base" ]
- sources = [
- "allocator_shim.cc",
- "allocator_shim.h",
- "allocator_shim_internals.h",
- "allocator_shim_override_cpp_symbols.h",
- "allocator_shim_override_libc_symbols.h",
- ]
- if (is_win) {
- sources += [
- "allocator_shim_default_dispatch_to_winheap.cc",
- "allocator_shim_override_ucrt_symbols_win.h",
- "winheap_stubs_win.cc",
- "winheap_stubs_win.h",
- ]
- } else if (is_linux && use_allocator == "tcmalloc") {
- sources += [
- "allocator_shim_default_dispatch_to_tcmalloc.cc",
- "allocator_shim_override_glibc_weak_symbols.h",
- ]
- deps = [
- ":tcmalloc",
- ]
- } else if (is_linux && use_allocator == "none") {
- sources += [ "allocator_shim_default_dispatch_to_glibc.cc" ]
- } else if (is_android && use_allocator == "none") {
- sources += [
- "allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc",
- "allocator_shim_override_linker_wrapped_symbols.h",
- ]
- all_dependent_configs = [ ":wrap_malloc_symbols" ]
- }
- }
+# Used to shim malloc symbols on Android. see //base/allocator/README.md.
+config("wrap_malloc_symbols") {
+ ldflags = [
+ "-Wl,-wrap,calloc",
+ "-Wl,-wrap,free",
+ "-Wl,-wrap,malloc",
+ "-Wl,-wrap,memalign",
+ "-Wl,-wrap,posix_memalign",
+ "-Wl,-wrap,pvalloc",
+ "-Wl,-wrap,realloc",
+ "-Wl,-wrap,valloc",
+ ]
}
« no previous file with comments | « base/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698