From: LLVM Packaging Team Date: Sat, 23 Jul 2022 21:01:02 +0000 (+0100) Subject: debug-jit-path X-Git-Tag: archive/raspbian/1%14.0.6-2+rpi1^2~74 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=548ffe7114483c15e757085ee3ddcd7586fdf7e3;p=llvm-toolchain-14.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 4a236e183c..d885b7df9f 100644 --- a/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp +++ b/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp @@ -304,8 +304,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/";