зеркало из https://github.com/microsoft/clang-1.git
scan-build now looks for ccc-analyzer first in the 'bin' subdirectory and then the directory where scan-build lives.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
48af2a9c1e
Коммит
ce87b92970
|
@ -1149,10 +1149,11 @@ $HtmlDir = GetHTMLRunDir($HtmlDir);
|
|||
# Set the appropriate environment variables.
|
||||
SetHtmlEnv(\@ARGV, $HtmlDir);
|
||||
|
||||
my $Cmd = Cwd::realpath("$RealBin/ccc-analyzer");
|
||||
|
||||
DieDiag("Executable 'ccc-analyzer' does not exist at '$Cmd'\n")
|
||||
if (! -x $Cmd);
|
||||
my $Cmd = Cwd::realpath("$RealBin/bin/ccc-analyzer");
|
||||
if (!defined $Cmd || ! -x $Cmd) {
|
||||
$Cmd = Cwd::realpath("$RealBin/ccc-analyzer");
|
||||
DieDiag("Executable 'ccc-analyzer' does not exist at '$Cmd'\n");
|
||||
}
|
||||
|
||||
if (!defined $ClangSB || ! -x $ClangSB) {
|
||||
Diag("'clang' executable not found in '$RealBin/bin'.\n");
|
||||
|
|
Загрузка…
Ссылка в новой задаче