From: LLVM Packaging Team Date: Sat, 5 Apr 2025 20:24:44 +0000 (+0200) Subject: debug-jit-path X-Git-Tag: archive/raspbian/1%18.1.8-18+rpi1^2~84 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c659f5fdf4cec92a5050dfeb37fe5ad3e8e3d63a;p=llvm-toolchain-18.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 e2b5ce49ba..12796cace6 100644 --- a/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp +++ b/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp @@ -303,8 +303,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/";