summaryrefslogtreecommitdiff
path: root/debian/patches/debug-jit-path.diff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-12-02 17:06:08 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-12-02 17:06:08 +0300
commit18583eaa2c6fa769ce80605422fa10a60d353af7 (patch)
tree4b6730afc2006e86ae8b91c8c4cf52b313b5c188 /debian/patches/debug-jit-path.diff
downloadllvm-toolchain-8-debian/8.0.1-4.tar.gz
Import llvm-toolchain-8 (1:8.0.1-4)debian/8.0.1-4debian
Diffstat (limited to 'debian/patches/debug-jit-path.diff')
-rw-r--r--debian/patches/debug-jit-path.diff15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/debug-jit-path.diff b/debian/patches/debug-jit-path.diff
new file mode 100644
index 0000000..78dc89a
--- /dev/null
+++ b/debian/patches/debug-jit-path.diff
@@ -0,0 +1,15 @@
+Index: llvm-toolchain-7_7.0.1~+rc3/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
+===================================================================
+--- llvm-toolchain-7_7.0.1~+rc3.orig/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
++++ llvm-toolchain-7_7.0.1~+rc3/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
+@@ -294,8 +294,8 @@ bool PerfJITEventListener::InitDebugging
+ // 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/";