From: LLVM Packaging Team Date: Sat, 14 Oct 2023 16:37:48 +0000 (+0100) Subject: debug-jit-path X-Git-Tag: archive/raspbian/1%19.1.3-1+rpi1~2^2^2~78 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1a6191d087a31d864ee484fd979719a2c7ee46dc;p=llvm-toolchain-19.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 b425eec5f6..9b2263f2f9 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/";