diff options
| author | Stephen Hines <srhines@google.com> | 2013-04-29 19:13:09 -0700 |
|---|---|---|
| committer | Stephen Hines <srhines@google.com> | 2013-04-29 19:13:09 -0700 |
| commit | b7d9c80c98fc96aa7c638e3124be24f13a6436b2 (patch) | |
| tree | 8910248827ff290891edaccefd5025dfb2069bc3 /cpu_ref/rsCpuScript.cpp | |
| parent | 6fe37d6bbbd7cecb4e049dd95ec9a308be30f679 (diff) | |
Provide a mechanism for adjusting RSCompilerDriver after construction.
We add a simple callback to the reference implementation of libRSDriver.so,
such that additional BCC flags can be toggled/adjusted before doing any actual
CPU compilation.
Change-Id: Iaf253b7d967d0382937369b1c5dae2d23a99e8be
Diffstat (limited to 'cpu_ref/rsCpuScript.cpp')
| -rw-r--r-- | cpu_ref/rsCpuScript.cpp | 7 |
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) { |
