On-device linking using bccLinkBC. Note that we switch to getFile interface
on the libbcc side. Change-Id: Iec4e0624f1448161c0a2163f3ce725ce6cdf3267
This commit is contained in:
@@ -462,8 +462,10 @@ static void* symbolLookup(void* pContext, char const* name) {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
extern const char rs_runtime_lib_bc[];
|
extern const char rs_runtime_lib_bc[];
|
||||||
extern unsigned rs_runtime_lib_bc_size;
|
extern unsigned rs_runtime_lib_bc_size;
|
||||||
|
#endif
|
||||||
|
|
||||||
void ScriptCState::runCompiler(Context *rsc,
|
void ScriptCState::runCompiler(Context *rsc,
|
||||||
ScriptC *s,
|
ScriptC *s,
|
||||||
@@ -484,11 +486,12 @@ void ScriptCState::runCompiler(Context *rsc,
|
|||||||
// Handle Fatal Error
|
// Handle Fatal Error
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 1
|
||||||
if (bccLinkBC(s->mBccScript,
|
if (bccLinkBC(s->mBccScript,
|
||||||
resName,
|
resName,
|
||||||
rs_runtime_lib_bc,
|
NULL /*rs_runtime_lib_bc*/,
|
||||||
rs_runtime_lib_bc_size, 0) != 0) {
|
0 /*rs_runtime_lib_bc_size*/,
|
||||||
|
0) != 0) {
|
||||||
LOGE("bcc: FAILS to link bitcode");
|
LOGE("bcc: FAILS to link bitcode");
|
||||||
// Handle Fatal Error
|
// Handle Fatal Error
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user