From: LLVM Packaging Team Date: Thu, 13 Jan 2022 20:17:23 +0000 (+0000) Subject: debug-jit-path X-Git-Tag: archive/raspbian/1%13.0.1_+rc3-1_exp1+rpi1^2~73 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5296ad9e931f1b3cbf9785e6d1b90b7551f2a539;p=llvm-toolchain-13.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/";