summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Roman Lavrov <romanl@google.com> 2024-10-21 19:01:52 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-10-21 19:01:52 +0000
commit7784c0541585cc9f86c20288831e65e96d298cfc (patch)
tree4ba3ad5a2081cb7d160415b8d7bfffd4dfba12bf
parentfb83f801e4b09e2ed2501c2830db1de262d63bb5 (diff)
parent0ec33d71473d74a8c94f5e6615c7a2ec82eac72f (diff)
Merge "Allow to override ANGLE suffix with debug.angle.libs.suffix" into main
-rw-r--r--opengl/libs/EGL/Loader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/opengl/libs/EGL/Loader.cpp b/opengl/libs/EGL/Loader.cpp
index bf0e38e986..fed6afc8e0 100644
--- a/opengl/libs/EGL/Loader.cpp
+++ b/opengl/libs/EGL/Loader.cpp
@@ -548,6 +548,10 @@ static void* load_angle(const char* kind, android_namespace_t* ns) {
.flags = ANDROID_DLEXT_USE_NAMESPACE,
.library_namespace = ns,
};
+ auto prop = base::GetProperty("debug.angle.libs.suffix", "");
+ if (!prop.empty()) {
+ name = std::string("lib") + kind + "_" + prop + ".so";
+ }
so = do_android_dlopen_ext(name.c_str(), RTLD_LOCAL | RTLD_NOW, &dlextinfo);
}