debug-jit-path
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 30 Nov 2021 18:32:51 +0000 (18:32 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 30 Nov 2021 18:32:51 +0000 (18:32 +0000)
===================================================================

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

llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp

index d4c715cc59f61ff8ee71aa271727c2f5be4a19ab..41dc31f8f9c78b42b27fc6b5287cdd38dd13243a 100644 (file)
@@ -301,8 +301,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/";