llvm-toolchain/debian/patches/clang-analyzer-force-version.diff
Sylvestre Ledru 228ad20aa7 * Change the versioning from X.Y to X as upstream is using
X.Y.Z and X
  I am keeping the epoch because it would be too complex to manage
  with the various updates scenario
* Two new symbols in libclang
  - clang_getFileContents
  - clang_isInvalidDeclaration
* Fix the VCS-* tags
2018-01-18 19:44:15 +00:00

26 lines
1.1 KiB
Diff

# Force the version of clang in the analyzer
# This was causing the static analyzer to fail silently if the clang & clang++ are
# not installed
Index: llvm-toolchain-snapshot_7.0~svn257.06/clang/tools/scan-build/libexec/ccc-analyzer
===================================================================
--- llvm-toolchain-snapshot_7.0~svn257.06.orig/clang/tools/scan-build/libexec/ccc-analyzer
+++ llvm-toolchain-snapshot_7.0~svn257.06/clang/tools/scan-build/libexec/ccc-analyzer
@@ -91,7 +91,7 @@ if ($FindBin::Script =~ /c\+\+-analyzer/
if (!defined $Compiler || (! -x $Compiler && ! SearchInPath($Compiler))) { $Compiler = $DefaultCXXCompiler; }
$Clang = $ENV{'CLANG_CXX'};
- if (!defined $Clang || ! -x $Clang) { $Clang = 'clang++'; }
+ if (!defined $Clang || ! -x $Clang) { $Clang = 'clang++-7'; }
$IsCXX = 1
}
@@ -100,7 +100,7 @@ else {
if (!defined $Compiler || (! -x $Compiler && ! SearchInPath($Compiler))) { $Compiler = $DefaultCCompiler; }
$Clang = $ENV{'CLANG'};
- if (!defined $Clang || ! -x $Clang) { $Clang = 'clang'; }
+ if (!defined $Clang || ! -x $Clang) { $Clang = 'clang-7'; }
$IsCXX = 0
}