提交 57c7f4fb 编写于 作者: W wangchen

feat: add compilation options for configuring jemalloc

add compilation options for configuring jemalloc  addr random

Close #I798KE
Signed-off-by: Nwangchen <wangchen240@huawei.com>
上级 73c0c696
...@@ -263,6 +263,10 @@ template("musl_libs") { ...@@ -263,6 +263,10 @@ template("musl_libs") {
"-DOHOS_TCACHE_NSLOTS_LARGE=16", "-DOHOS_TCACHE_NSLOTS_LARGE=16",
] ]
if (is_debug || musl_secure_level > 1) {
cflags += [ "-DOHOS_TCACHE_NSLOTS_RANDOM" ]
}
if (musl_arch == "arm") { if (musl_arch == "arm") {
cflags += [ cflags += [
"-march=armv7-a", "-march=armv7-a",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册