commit | 5b04728e9a61cf038e38820eb8a82a412015d5e3 | [log] [tgz] |
---|---|---|
author | Shih-wei Liao <sliao@google.com> | Fri Apr 20 23:37:46 2012 -0700 |
committer | Shih-wei Liao <sliao@google.com> | Fri Apr 20 23:41:10 2012 -0700 |
tree | 034f7e5829e2fbed730bd45664f6bb5298eb4745 | |
parent | 620cf223c9c37258f1888fef9bd8bfbf624480f7 [diff] |
Fix on-device compile. Change-Id: I4687672f6f82d155f76201c92c44c95f9f32a2ad
diff --git a/src/compiler_llvm/compilation_unit.cc b/src/compiler_llvm/compilation_unit.cc index 166d2f6..a1d66f1 100644 --- a/src/compiler_llvm/compilation_unit.cc +++ b/src/compiler_llvm/compilation_unit.cc
@@ -205,7 +205,8 @@ }; bool CompilationUnit::Materialize() { - const std::string tmp_file("/tmp/art-llvm-XXXXXX"); + std::string tmp_file = GetArtCacheOrDie(); + tmp_file += "/art-llvm-XXXXXX"; // Prepare the input ScopedTempFile input(tmp_file);