diff options
author | Shih-wei Liao <sliao@google.com> | 2011-01-16 02:23:04 -0800 |
---|---|---|
committer | Shih-wei Liao <sliao@google.com> | 2011-01-16 03:57:20 -0800 |
commit | 80761ecd7b19a44e6bb77437f4d99ee6b58fe251 (patch) | |
tree | 2793e1448213dbb526e6143065bba1860fd6b91e /rsScriptC.cpp | |
parent | 2b2e62117780d89bcd38f3ae453c4105a360ff79 (diff) | |
download | rs-80761ecd7b19a44e6bb77437f4d99ee6b58fe251.tar.gz |
On-device linking using bccLinkBC. Note that we switch to getFile interface
on the libbcc side.
Change-Id: Iec4e0624f1448161c0a2163f3ce725ce6cdf3267
Diffstat (limited to 'rsScriptC.cpp')
-rw-r--r-- | rsScriptC.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/rsScriptC.cpp b/rsScriptC.cpp index 872e7a60..0ecb18a2 100644 --- a/rsScriptC.cpp +++ b/rsScriptC.cpp @@ -462,8 +462,10 @@ static void* symbolLookup(void* pContext, char const* name) { return NULL; } +#if 0 extern const char rs_runtime_lib_bc[]; extern unsigned rs_runtime_lib_bc_size; +#endif void ScriptCState::runCompiler(Context *rsc, ScriptC *s, @@ -484,11 +486,12 @@ void ScriptCState::runCompiler(Context *rsc, // Handle Fatal Error } -#if 0 +#if 1 if (bccLinkBC(s->mBccScript, resName, - rs_runtime_lib_bc, - rs_runtime_lib_bc_size, 0) != 0) { + NULL /*rs_runtime_lib_bc*/, + 0 /*rs_runtime_lib_bc_size*/, + 0) != 0) { LOGE("bcc: FAILS to link bitcode"); // Handle Fatal Error } |