debug-jit-path
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sun, 1 Jan 2023 14:46:39 +0000 (14:46 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 1 Jan 2023 14:46:39 +0000 (14:46 +0000)
===================================================================

Gbp-Pq: Name debug-jit-path.diff

llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp

index bb41bac325348936fd2c6c841352ae11372526fd..d998f38f0540d812b863bec45506f28ef4e3f20e 100644 (file)
@@ -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/";