summaryrefslogtreecommitdiff
path: root/cpu_ref
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2017-06-14 02:40:14 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-06-14 02:40:14 +0000
commit70d6a843f63cafd90b74238271e35a5308d17066 (patch)
treeb26b8f5fedf7b91438aa785d5f41aabcd3065195 /cpu_ref
parente08d62bb015b7fbfd2e79729e19c5a1ac987d2db (diff)
parent8d421ca1f0aa477c7927a1a897b44d6ee54ff83a (diff)
downloadrs-70d6a843f63cafd90b74238271e35a5308d17066.tar.gz
bcc vendor plugin must be loaded from the sphal namespace
am: 8d421ca1f0 Change-Id: Ia85eff89e376f09fac5cf203b2f6bf16b558604d
Diffstat (limited to 'cpu_ref')
-rw-r--r--cpu_ref/rsCpuScript.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpu_ref/rsCpuScript.cpp b/cpu_ref/rsCpuScript.cpp
index cf1b869f..15cd9952 100644
--- a/cpu_ref/rsCpuScript.cpp
+++ b/cpu_ref/rsCpuScript.cpp
@@ -108,7 +108,13 @@ static void setCompileArguments(std::vector<const char*>* args,
// Only load additional libraries for compiles that don't use
// the debug context.
if (bccPluginName && strlen(bccPluginName) > 0) {
+#ifdef __ANDROID__
+ // For Android, -plugin option must be used in order to load the
+ // vendor plugin from the sphal namespace.
+ args->push_back("-plugin");
+#else
args->push_back("-load");
+#endif
args->push_back(bccPluginName);
}
}