scan-build-clang-path
Gbp-Pq: Name scan-build-clang-path.diff
This commit is contained in:
parent
f983286f08
commit
df4ed81ecd
|
@ -1478,7 +1478,7 @@ sub FindClang {
|
||||||
if (!defined $Options{AnalyzerDiscoveryMethod}) {
|
if (!defined $Options{AnalyzerDiscoveryMethod}) {
|
||||||
$Clang = Cwd::realpath("$RealBin/bin/clang") if (-f "$RealBin/bin/clang");
|
$Clang = Cwd::realpath("$RealBin/bin/clang") if (-f "$RealBin/bin/clang");
|
||||||
if (!defined $Clang || ! -x $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) {
|
if (!defined $Clang || ! -x $Clang) {
|
||||||
# When an Xcode toolchain is present, look for a clang in the sibling bin
|
# 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
|
# of the parent of the bin directory. So if scan-build is at
|
||||||
|
|
Loading…
Reference in New Issue