diff --git a/core/soong_cc_prebuilt.mk b/core/soong_cc_prebuilt.mk index 9e3f0d3a17..20950ca21e 100644 --- a/core/soong_cc_prebuilt.mk +++ b/core/soong_cc_prebuilt.mk @@ -120,11 +120,12 @@ ifeq ($(LOCAL_VNDK_DEPEND_ON_CORE_VARIANT),true) endif ifeq ($(LOCAL_VNDK_DEPEND_ON_CORE_VARIANT),true) +$(LOCAL_BUILT_MODULE): PRIVATE_TOOLS_PREFIX := $($(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)TOOLS_PREFIX) $(LOCAL_BUILT_MODULE): $(LOCAL_PREBUILT_MODULE_FILE) $(LIBRARY_IDENTITY_CHECK_SCRIPT) $(call verify-vndk-libs-identical,\ $(PRIVATE_CORE_VARIANT),\ $<,\ - $($(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)TOOLS_PREFIX)) + $(PRIVATE_TOOLS_PREFIX)) $(copy-file-to-target) else $(LOCAL_BUILT_MODULE): $(LOCAL_PREBUILT_MODULE_FILE)