Package: llvm-toolchain-5.0 / 1:5.0.1-2~bpo9+1

scan-build-clang-path.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
 clang/tools/scan-build/bin/scan-build |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/clang/tools/scan-build/bin/scan-build
+++ b/clang/tools/scan-build/bin/scan-build
@@ -1432,7 +1432,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-5.0/bin/clang");
     }
     if (!defined $Clang || ! -x $Clang) {
       return "error: Cannot find an executable 'clang' relative to" .