summaryrefslogtreecommitdiff
path: root/debian/patches/scan-build-clang-path.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/scan-build-clang-path.diff')
-rw-r--r--debian/patches/scan-build-clang-path.diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/scan-build-clang-path.diff b/debian/patches/scan-build-clang-path.diff
new file mode 100644
index 0000000..d1e1e22
--- /dev/null
+++ b/debian/patches/scan-build-clang-path.diff
@@ -0,0 +1,17 @@
+---
+ clang/tools/scan-build/bin/scan-build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: llvm-toolchain-snapshot_8~svn349138/clang/tools/scan-build/bin/scan-build
+===================================================================
+--- llvm-toolchain-snapshot_8~svn349138.orig/clang/tools/scan-build/bin/scan-build
++++ llvm-toolchain-snapshot_8~svn349138/clang/tools/scan-build/bin/scan-build
+@@ -1468,7 +1468,7 @@ sub FindClang {
+ if (!defined $Options{AnalyzerDiscoveryMethod}) {
+ $Clang = Cwd::realpath("$RealBin/bin/clang") if (-f "$RealBin/bin/clang");
+ if (!defined $Clang || ! -x $Clang) {
+- $Clang = Cwd::realpath("$RealBin/clang") if (-f "$RealBin/clang");
++ $Clang = Cwd::realpath("/usr/lib/llvm-8/bin/clang");
+ }
+ if (!defined $Clang || ! -x $Clang) {
+ return "error: Cannot find an executable 'clang' relative to" .