]> git.saurik.com Git - redis.git/commit
Rebuild source when allocator changes
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Tue, 15 Nov 2011 21:09:31 +0000 (13:09 -0800)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Tue, 15 Nov 2011 21:09:34 +0000 (13:09 -0800)
commit5bb2c88e9414df90f029b88a38a67f5fc1e36219
treee1f0667cfc08c23476254adb15bde2cccd0dc3d3
parent4b8a63941dc360a0d2dcba1ec182a006221e4a20
Rebuild source when allocator changes

To do so, the Makefile stores the contents of the MALLOC environment
variable in a file named .make-malloc. When the contents of this file
and the MALLOC variable are not equal, it forces a rebuild of the Redis
source tree.

A side-effect of this change is that choosing an allocator can now be
done using the single MALLOC variable instead of USE_TCMALLOC,
USE_JEMALLOC and so forth. These variables continue to work for
backwards compatibility.
src/Makefile