!401 Add MACRO "ASAN_DETECTOR" in BUILD.gn

Merge pull request !401 from shiyu_huang/dev_20220906
This commit is contained in:
openharmony_ci 2022-09-07 01:59:43 +00:00 committed by Gitee
commit 42e892aaa6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -43,6 +43,9 @@ ohos_executable("appspawn") {
"${appspawn_path}/adapter/appspawn_ace.cpp",
"${appspawn_path}/standard/main.c",
]
if (asan_detector) {
defines = [ "ASAN_DETECTOR" ]
}
configs = [ ":appspawn_config" ]
deps = [
"${ability_runtime_path}/frameworks/native/appkit:appkit_native",