diff --git a/musl_template.gni b/musl_template.gni index 0fdd8db686fb60fe33bebf025d71fa8de5e27ff5..f032724f528f20e2b1de3432dc3c7dd395940067 100755 --- a/musl_template.gni +++ b/musl_template.gni @@ -157,9 +157,12 @@ template("musl_libs") { "-Werror=pointer-sign", "-Werror=pointer-arith", "-Qunused-arguments", - "-DHOOK_ENABLE", ] + if (!is_asan) { + cflags_auto += [ "-DHOOK_ENABLE" ] + } + cflags_c99fse = [ "-std=c99", "-nostdinc", @@ -213,8 +216,11 @@ template("musl_libs") { "__MUSL__", "_LIBCPP_HAS_MUSL_LIBC", "__BUILD_LINUX_WITH_CLANG", - "HOOK_ENABLE", ] + + if (!is_asan) { + defines += [ "HOOK_ENABLE" ] + } ldflags = [ "-nostdlib" ] libs = []