Skip to content
Snippets Groups Projects
Commit 833da023 authored by Ted Kremenek's avatar Ted Kremenek
Browse files

scan-build: Also look for clang-cc in ../libexec

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67972 91177308-0d34-0410-b5e6-96231b3b80d8
parent a027ea94
No related branches found
No related tags found
No related merge requests found
......@@ -81,18 +81,21 @@ sub DieDiag {
# Some initial preprocessing of Clang options.
##----------------------------------------------------------------------------##
# First, look for 'clang-cc' in libexec.
my $ClangSB = Cwd::realpath("$RealBin/libexec/clang-cc");
# Also look for 'clang-cc' in the same directory as scan-build.
# Second, look for 'clang-cc' in the same directory as scan-build.
if (!defined $ClangSB || ! -x $ClangSB) {
$ClangSB = Cwd::realpath("$RealBin/clang-cc");
}
my $Clang = $ClangSB;
# Third, look for 'clang-cc' in ../libexec
if (!defined $ClangSB || ! -x $ClangSB) {
$Clang = "clang-cc";
$ClangSB = Cwd::realpath("$RealBin/../libexec/clang-cc");
}
# Finally, default to looking for 'clang-cc' in the path.
if (!defined $ClangSB || ! -x $ClangSB) {
$ClangSB = "clang-cc";
}
my $Clang = $ClangSB;
my %AvailableAnalyses;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment