Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[CPU] Fix wrong ranlib tool path on Android build (#32257)

Arseniy Obolenskiyf75b40f93152
diff --git a/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake b/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake
index 9caba914e62..aa7f41099d1 100644
--- a/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake
+++ b/src/plugins/intel_cpu/thirdparty/ACLConfig.cmake
@@ -155,13 +155,7 @@ elseif(NOT TARGET arm_compute::arm_compute)
"Please, specify -DANDROID_PLATFORM=android-18 at least")
endif()
- if(ANDROID_NDK_REVISION LESS "23.0")
- ov_arm_compute_add_option("toolchain_prefix" "${ANDROID_TOOLCHAIN_PREFIX}")
- else()
- string(REGEX REPLACE "/bin/[^/]+-" "/bin/llvm-" ANDROID_TOOLCHAIN_PREFIX_FIXED "${ANDROID_TOOLCHAIN_PREFIX}")
- message(STATUS "SCONS: using ANDROID_TOOLCHAIN_PREFIX=${ANDROID_TOOLCHAIN_PREFIX_FIXED}")
- ov_arm_compute_add_option("toolchain_prefix" "${ANDROID_TOOLCHAIN_PREFIX_FIXED}")
- endif()
+ ov_arm_compute_add_option("toolchain_prefix" "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-")
ov_arm_compute_add_option("compiler_prefix" "${ANDROID_TOOLCHAIN_ROOT}/bin/")