From: LLVM Packaging Team Date: Mon, 30 Dec 2019 14:31:05 +0000 (+0000) Subject: debug-jit-path X-Git-Tag: archive/raspbian/1%7.0.1-8+rpi3+deb10u2~95 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=64c5f2a2581cc604b3077760b4cec3f22844c7dc;p=llvm-toolchain-7.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 7bf8120d2..f933c67af 100644 --- a/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp +++ b/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp @@ -294,8 +294,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/";