diff --git a/libc/Android.bp b/libc/Android.bp index d355d4cad..dd9bb6ece 100644 --- a/libc/Android.bp +++ b/libc/Android.bp @@ -112,11 +112,6 @@ cc_defaults { device_uses_dlmalloc: { cflags: ["-DUSE_DLMALLOC"], }, - // To customize dlmalloc's alignment, set BOARD_MALLOC_ALIGNMENT in - // the appropriate BoardConfig.mk file. - dlmalloc_alignment: { - cflags: ["-DMALLOC_ALIGNMENT=%d"], - }, }, // Clang/llvm has incompatible long double (fp128) for x86_64. // https://llvm.org/bugs/show_bug.cgi?id=23897 diff --git a/libc/Android.mk b/libc/Android.mk index 5ac0e1d82..ca75230f4 100644 --- a/libc/Android.mk +++ b/libc/Android.mk @@ -655,13 +655,6 @@ else libc_common_c_includes += external/jemalloc/include endif -# To customize dlmalloc's alignment, set BOARD_MALLOC_ALIGNMENT in -# the appropriate BoardConfig.mk file. -# -ifneq ($(BOARD_MALLOC_ALIGNMENT),) - libc_common_cflags += -DMALLOC_ALIGNMENT=$(BOARD_MALLOC_ALIGNMENT) -endif - # Define some common conlyflags libc_common_conlyflags := \ -std=gnu99