debug-jit-path
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 7 Jul 2020 16:18:00 +0000 (17:18 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 7 Jul 2020 16:18:00 +0000 (17:18 +0100)
===================================================================

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

llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp

index 5606421a3cb077b41f1bd2fae4d203f020cf8b07..5957ed63f2f798d9c3c4c80481f12b3d8b36548c 100644 (file)
@@ -300,8 +300,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/";