only enable LABEL_MEMORY in debug builds

pull/87/head
Daniel Micay 2019-03-20 14:11:06 -04:00
parent 87acbcdf23
commit e4120913d6
1 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,6 @@ common_cflags = [
"-DREGION_QUARANTINE_SKIP_THRESHOLD=33554432", // 32MiB
"-DFREE_SLABS_QUARANTINE_RANDOM_LENGTH=32",
"-DCONFIG_CLASS_REGION_SIZE=1073741824", // 1GiB
"-DLABEL_MEMORY",
]
cc_defaults {
@ -48,4 +47,9 @@ cc_library_static {
name: "libhardened_malloc",
defaults: ["hardened_malloc_defaults"],
srcs: lib_src_files,
product_variables: {
debuggable: {
cflags: ["-DLABEL_MEMORY"],
},
},
}