summaryrefslogtreecommitdiff
path: root/cpu_ref/rsCpuScript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpu_ref/rsCpuScript.cpp')
-rw-r--r--cpu_ref/rsCpuScript.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpu_ref/rsCpuScript.cpp b/cpu_ref/rsCpuScript.cpp
index d9e0044c..50a536aa 100644
--- a/cpu_ref/rsCpuScript.cpp
+++ b/cpu_ref/rsCpuScript.cpp
@@ -144,6 +144,13 @@ bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir,
mCompilerDriver->setRSRuntimeLookupFunction(lookupRuntimeStub);
mCompilerDriver->setRSRuntimeLookupContext(this);
+ // Run any compiler setup functions we have been provided with.
+ RSSetupCompilerCallback setupCompilerCallback =
+ mCtx->getSetupCompilerCallback();
+ if (setupCompilerCallback != NULL) {
+ setupCompilerCallback(mCompilerDriver);
+ }
+
const char *core_lib = NULL;
RSSelectRTCallback selectRTCallback = mCtx->getSelectRTCallback();
if (selectRTCallback != NULL) {