debug-jit-path
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 30 Oct 2024 20:56:13 +0000 (21:56 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 30 Oct 2024 20:56:13 +0000 (21:56 +0100)
===================================================================

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

llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp

index e2b5ce49ba2ec1f732ee2d554303f0f72729648e..12796cace63159d208af0710a93a9656dcc1be0c 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/";