mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-19 22:10:19 +02:00
only enable LABEL_MEMORY in debug builds
This commit is contained in:
parent
87acbcdf23
commit
e4120913d6
1 changed files with 5 additions and 1 deletions
|
@ -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"],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue