diff --git a/frameworks/innerkitsimpl/medialibrary_data_extension/BUILD.gn b/frameworks/innerkitsimpl/medialibrary_data_extension/BUILD.gn index c9e2885c938a25bb0ddd8739a0a7a47238b152ba..b58a466c028ba7317421e37270a1ae1b4ee2cb61 100644 --- a/frameworks/innerkitsimpl/medialibrary_data_extension/BUILD.gn +++ b/frameworks/innerkitsimpl/medialibrary_data_extension/BUILD.gn @@ -375,7 +375,7 @@ ohos_shared_library("medialibrary_data_extension") { sources += [ "${MEDIALIB_SERVICES_PATH}/media_multistages_capture/src/deferred_processing/multistages_capture_deferred_proc_session_callback.cpp" ] } - if (!media_library_link_opt && !asan_detector) { + if (!media_library_link_opt) { sanitize = { cfi = true cfi_cross_dso = true @@ -392,17 +392,6 @@ ohos_shared_library("medialibrary_data_extension") { "-Os", ] - if (asan_detector) { - cflags_cc += [ - "-fsanitize=address", - "-shared-libasan", - ] - ldflags = [ - "-fsanitize=address", - "-shared-libasan", - ] - } - if (defined(global_parts_info) && defined(global_parts_info.powermgr_battery_manager)) { external_deps += [ "battery_manager:batterysrv_client" ]