scan-build-clang-path

Gbp-Pq: Name scan-build-clang-path.diff
This commit is contained in:
Ubuntu Developers 2022-07-16 17:45:37 +08:00 committed by Lu zhiping
parent f983286f08
commit df4ed81ecd
1 changed files with 1 additions and 1 deletions

View File

@ -1478,7 +1478,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-10/bin/clang");
if (!defined $Clang || ! -x $Clang) {
# When an Xcode toolchain is present, look for a clang in the sibling bin
# of the parent of the bin directory. So if scan-build is at