From: LLVM Packaging Team Date: Mon, 31 Aug 2020 10:28:24 +0000 (+0100) Subject: debug-jit-path X-Git-Tag: archive/raspbian/1%10.0.1-5+rpi1^2~65 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e5f90c62fb2dbb2f167ec6d13bd6cc24e5081509;p=llvm-toolchain-10.git debug-jit-path =================================================================== Gbp-Pq: Name debug-jit-path.diff --- diff --git a/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp b/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp index cc196df3b..f61f0a1c8 100644 --- a/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp +++ b/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp @@ -301,8 +301,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/";