debug-jit-path
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Mon, 11 Sep 2023 13:40:42 +0000 (14:40 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Mon, 11 Sep 2023 13:40:42 +0000 (14:40 +0100)
===================================================================

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

llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp

index b425eec5f6d6a804d71998a6587410ef19284b4c..9b2263f2f919e78f4f7c072f6ac72316f6656087 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/";