From: LLVM Packaging Team Date: Thu, 23 Jan 2020 09:17:54 +0000 (+0000) Subject: debug-jit-path X-Git-Tag: archive/raspbian/1%8.0.1-7+rpi1^2~81 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9e34fea01a3fbcb9a283baf4f8b74ea96d6fbf2f;p=llvm-toolchain-8.git debug-jit-path =================================================================== Gbp-Pq: Name debug-jit-path.diff --- diff --git a/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp b/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp index f195d0282..cd6335b30 100644 --- a/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp +++ b/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp @@ -295,8 +295,8 @@ bool PerfJITEventListener::InitDebuggingDir() { // search for location to dump data to if (const char *BaseDir = getenv("JITDUMPDIR")) Path.append(BaseDir); - else if (!sys::path::home_directory(Path)) - Path = "."; + else + sys::path::system_temp_directory(/*ErasedOnReboot*/ true, Path); // create debug directory Path += "/.debug/jit/";