diff options
author | Jiyong Park <jiyong@google.com> | 2017-06-14 02:40:14 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-06-14 02:40:14 +0000 |
commit | 70d6a843f63cafd90b74238271e35a5308d17066 (patch) | |
tree | b26b8f5fedf7b91438aa785d5f41aabcd3065195 /cpu_ref | |
parent | e08d62bb015b7fbfd2e79729e19c5a1ac987d2db (diff) | |
parent | 8d421ca1f0aa477c7927a1a897b44d6ee54ff83a (diff) | |
download | rs-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.cpp | 6 |
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); } } |