提交 1426ed13 编写于 作者: M mucor

fix: do not enbale hook in asan build

re #I4PRNO
Signed-off-by: Nmucor <mucorwang@gmail.com>
上级 32c6bb13
...@@ -157,9 +157,12 @@ template("musl_libs") { ...@@ -157,9 +157,12 @@ template("musl_libs") {
"-Werror=pointer-sign", "-Werror=pointer-sign",
"-Werror=pointer-arith", "-Werror=pointer-arith",
"-Qunused-arguments", "-Qunused-arguments",
"-DHOOK_ENABLE",
] ]
if (!is_asan) {
cflags_auto += [ "-DHOOK_ENABLE" ]
}
cflags_c99fse = [ cflags_c99fse = [
"-std=c99", "-std=c99",
"-nostdinc", "-nostdinc",
...@@ -213,8 +216,11 @@ template("musl_libs") { ...@@ -213,8 +216,11 @@ template("musl_libs") {
"__MUSL__", "__MUSL__",
"_LIBCPP_HAS_MUSL_LIBC", "_LIBCPP_HAS_MUSL_LIBC",
"__BUILD_LINUX_WITH_CLANG", "__BUILD_LINUX_WITH_CLANG",
"HOOK_ENABLE",
] ]
if (!is_asan) {
defines += [ "HOOK_ENABLE" ]
}
ldflags = [ "-nostdlib" ] ldflags = [ "-nostdlib" ]
libs = [] libs = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册