summaryrefslogtreecommitdiff
path: root/libs/rs/rsScriptC.cpp
diff options
context:
space:
mode:
authorShih-wei Liao <sliao@google.com>2011-01-16 02:23:04 -0800
committerShih-wei Liao <sliao@google.com>2011-01-16 03:57:20 -0800
commit71a2e13d19fa8d8f88b6b97e2b28296094af3005 (patch)
treeb90f07b14c4ffc72fe988d56e91b1ab8eeed14a0 /libs/rs/rsScriptC.cpp
parentefb9000f42f30cc6e70113626de0f05456340ad2 (diff)
On-device linking using bccLinkBC. Note that we switch to getFile interface
on the libbcc side. Change-Id: Iec4e0624f1448161c0a2163f3ce725ce6cdf3267
Diffstat (limited to 'libs/rs/rsScriptC.cpp')
-rw-r--r--libs/rs/rsScriptC.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp
index 872e7a6003e9..0ecb18a28d88 100644
--- a/libs/rs/rsScriptC.cpp
+++ b/libs/rs/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
}