debug-jit-path
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sat, 4 Jan 2025 08:12:52 +0000 (09:12 +0100)
committerMatthias Klose <doko@debian.org>
Sat, 4 Jan 2025 08:12:52 +0000 (09:12 +0100)
===================================================================

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

llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp

index 62cab22a1c45d802c64067217266151f32263fe5..5b4ef76fa89b0a56c9cf0616d14365c2a2c465bf 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/";