Deliberately leak android tool cache so it doesn't go out of scope

* We need this to survive until shutdown, and global destruction order is
  undefined.
This commit is contained in:
baldurk
2019-11-26 11:39:54 +00:00
parent 279a2ec69d
commit 7395456b7c
+2 -2
View File
@@ -157,8 +157,8 @@ struct ToolPathCache
static ToolPathCache &getCache()
{
static ToolPathCache cache;
return cache;
static ToolPathCache *cache = new ToolPathCache;
return *cache;
}
std::string getToolPath(ToolDir subdir, const std::string &toolname, bool checkExist)