diff options
Diffstat (limited to 'applypatch/freecache.cpp')
-rw-r--r-- | applypatch/freecache.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/applypatch/freecache.cpp b/applypatch/freecache.cpp index 0a40baa9..ec1d20ce 100644 --- a/applypatch/freecache.cpp +++ b/applypatch/freecache.cpp | |||
@@ -111,6 +111,12 @@ static std::set<std::string> FindExpendableFiles() { | |||
111 | } | 111 | } |
112 | 112 | ||
113 | int MakeFreeSpaceOnCache(size_t bytes_needed) { | 113 | int MakeFreeSpaceOnCache(size_t bytes_needed) { |
114 | #ifndef __ANDROID__ | ||
115 | // TODO (xunchang) implement a heuristic cache size check during host simulation. | ||
116 | printf("Skip making (%zu) bytes free space on cache; program is running on host\n", bytes_needed); | ||
117 | return 0; | ||
118 | #endif | ||
119 | |||
114 | size_t free_now = FreeSpaceForFile("/cache"); | 120 | size_t free_now = FreeSpaceForFile("/cache"); |
115 | printf("%zu bytes free on /cache (%zu needed)\n", free_now, bytes_needed); | 121 | printf("%zu bytes free on /cache (%zu needed)\n", free_now, bytes_needed); |
116 | 122 | ||