DescriptionGN: Force use_allocator="none" in NaCl toolchains
Heretofore, the use_allocator build argument has been effectively
ignored within NaCl toolchains by dint of the 'if (!is_nacl)'
around the contents of //base/allocator:allocator. However,
configs that test the use_allocator value have not had equivalent
is_nacl exceptions. The result is that tcmalloc is never built
in NaCl toolchains but other parts of the code think it has been.
Notably, //build/config:feature_flags fails to #define
NO_TCMALLOC. Hence, code testing NO_TCMALLOC wrongly concludes
it can call entry points supplied by tcmalloc. This broke the
enable_profiling=true build of some targets in the
newlib_pnacl_nonsfi toolchain, because //base/debug/profiler.cc
tries to use profiling-related tcmalloc entry points.
So this change removes that is_nacl kludge from //base/allocator
and instead wires up NaCl toolchains to force a setting of
use_allocator="none" via toolchain_args().
BUG=596918
R=dpranke@chromium.org, phosek@chromium.org
Committed: https://crrev.com/ee80d85ca30c60a5167ef6849157918bc01d757c
Cr-Commit-Position: refs/heads/master@{#383471}
Patch Set 1 #
Messages
Total messages: 21 (8 generated)
|