From: LLVM Packaging Team Date: Mon, 9 Sep 2024 12:56:19 +0000 (+0200) Subject: debug-jit-path X-Git-Tag: archive/raspbian/1%17.0.6-18+rpi1^2~85 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8a4d7fb76073fd24d9996d74d7a9b1c92a121fcb;p=llvm-toolchain-17.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 62cab22a1c..5b4ef76fa8 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/";