Fix the patch detection of clang from scan-build (Closes: #698352)

This commit is contained in:
Sylvestre Ledru 2013-01-17 15:05:33 +00:00
parent cb21446b7a
commit 9b58061c74
2 changed files with 14 additions and 1 deletions

2
debian/changelog vendored
View File

@ -2,8 +2,8 @@ llvm-toolchain-3.2 (3.2-1) unstable; urgency=low
* Build the whole LLVM toolchain at once.
TODO
* Build using cmake instead of the autotools
* Also install clang-check & clang-tblgen in the clang-3.2 package
* Fix the patch detection of clang from scan-build (Closes: #698352)
-- Sylvestre Ledru <sylvestre@debian.org> Mon, 07 Jan 2013 15:45:54 +0100

View File

@ -0,0 +1,13 @@
Index: llvm-toolchain-3.2-3.2/clang/tools/scan-build/scan-build
===================================================================
--- llvm-toolchain-3.2-3.2.orig/clang/tools/scan-build/scan-build 2012-09-15 07:51:10.000000000 +0200
+++ llvm-toolchain-3.2-3.2/clang/tools/scan-build/scan-build 2013-01-17 16:04:10.000000000 +0100
@@ -1459,7 +1459,7 @@
# Find 'clang'
if (!defined $AnalyzerDiscoveryMethod) {
- $Clang = Cwd::realpath("$RealBin/bin/clang");
+ $Clang = Cwd::realpath("/usr/bin/clang");
if (!defined $Clang || ! -x $Clang) {
$Clang = Cwd::realpath("$RealBin/clang");
}