debug-jit-path
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Mon, 9 May 2022 18:47:26 +0000 (19:47 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Mon, 9 May 2022 18:47:26 +0000 (19:47 +0100)
===================================================================

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

llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp

index 4a236e183c8b6933107d41620450741be7a4dfd6..d885b7df9f68d0ed743d9b1081a6e9bf28823336 100644 (file)
@@ -304,8 +304,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/";