Merge pull request #26451 from savuor:rv/fix_get_handle

Build fix for opencl_core.cpp
This commit is contained in:
Alexander Smorkalov 2024-11-12 20:50:48 +03:00 committed by GitHub
commit ff639d11d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -204,7 +204,7 @@ static void* GetProcAddress(const char* name)
{ {
const std::string path = (i==0) ? getRuntimePath(defaultAndroidPaths[i]) : defaultAndroidPaths[i]; const std::string path = (i==0) ? getRuntimePath(defaultAndroidPaths[i]) : defaultAndroidPaths[i];
if (!path.empty()) { if (!path.empty()) {
handle = GetHandle(path); handle = GetHandle(path.c_str());
if (handle) { if (handle) {
foundOpenCL = true; foundOpenCL = true;
break; break;