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

Side by Side Diff: build/build_config.h

Issue 14321006: Adds TCMalloc support for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Always use phtread_once Created 7 years, 7 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
« no previous file with comments | « base/allocator/allocator.gyp ('k') | build/common.gypi » ('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) 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 // This file adds defines about the platform we're currently building on. 5 // This file adds defines about the platform we're currently building on.
6 // Operating System: 6 // Operating System:
7 // OS_WIN / OS_MACOSX / OS_LINUX / OS_POSIX (MACOSX or LINUX) 7 // OS_WIN / OS_MACOSX / OS_LINUX / OS_POSIX (MACOSX or LINUX)
8 // Compiler: 8 // Compiler:
9 // COMPILER_MSVC / COMPILER_GCC 9 // COMPILER_MSVC / COMPILER_GCC
10 // Processor: 10 // Processor:
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // For access to standard POSIXish features, use OS_POSIX instead of a 63 // For access to standard POSIXish features, use OS_POSIX instead of a
64 // more specific macro. 64 // more specific macro.
65 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ 65 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \
66 defined(OS_OPENBSD) || defined(OS_SOLARIS) || defined(OS_ANDROID) || \ 66 defined(OS_OPENBSD) || defined(OS_SOLARIS) || defined(OS_ANDROID) || \
67 defined(OS_NACL) 67 defined(OS_NACL)
68 #define OS_POSIX 1 68 #define OS_POSIX 1
69 #endif 69 #endif
70 70
71 // Use tcmalloc 71 // Use tcmalloc
72 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(NO_TCMALLOC) 72 #if (defined(OS_WIN) || defined(OS_LINUX) || defined(OS_ANDROID)) && \
73 !defined(NO_TCMALLOC)
73 #define USE_TCMALLOC 1 74 #define USE_TCMALLOC 1
74 #endif 75 #endif
75 76
76 // Compiler detection. 77 // Compiler detection.
77 #if defined(__GNUC__) 78 #if defined(__GNUC__)
78 #define COMPILER_GCC 1 79 #define COMPILER_GCC 1
79 #elif defined(_MSC_VER) 80 #elif defined(_MSC_VER)
80 #define COMPILER_MSVC 1 81 #define COMPILER_MSVC 1
81 #else 82 #else
82 #error Please add support for your compiler in build/build_config.h 83 #error Please add support for your compiler in build/build_config.h
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 #if defined(OS_ANDROID) 141 #if defined(OS_ANDROID)
141 // The compiler thinks std::string::const_iterator and "const char*" are 142 // The compiler thinks std::string::const_iterator and "const char*" are
142 // equivalent types. 143 // equivalent types.
143 #define STD_STRING_ITERATOR_IS_CHAR_POINTER 144 #define STD_STRING_ITERATOR_IS_CHAR_POINTER
144 // The compiler thinks base::string16::const_iterator and "char16*" are 145 // The compiler thinks base::string16::const_iterator and "char16*" are
145 // equivalent types. 146 // equivalent types.
146 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER 147 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER
147 #endif 148 #endif
148 149
149 #endif // BUILD_BUILD_CONFIG_H_ 150 #endif // BUILD_BUILD_CONFIG_H_
OLDNEW
« no previous file with comments | « base/allocator/allocator.gyp ('k') | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698