Load scripts from cached files every time.
Bug: 7342767
Having an separate in-memory (vs. file-based) loader makes little sense as
we refactor libbcc (to separate it into its own process space). This change
is a first step in cleanly separating the compile and link steps.
Change-Id: Iad67527329171f18475ced0f0b2652a0aa060259
diff --git a/lib/Renderscript/RSExecutable.cpp b/lib/Renderscript/RSExecutable.cpp
index be39f3c..ed06f30 100644
--- a/lib/Renderscript/RSExecutable.cpp
+++ b/lib/Renderscript/RSExecutable.cpp
@@ -129,7 +129,7 @@
return true;
}
- android::String8 info_path = RSInfo::GetPath(*mObjFile);
+ android::String8 info_path = RSInfo::GetPath(mObjFile->getName().c_str());
OutputFile info_file(info_path.string(), FileBase::kTruncate);
if (info_file.hasError()) {