We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6806e42 commit e101c97Copy full SHA for e101c97
clang/tools/scan-build/libexec/ccc-analyzer
@@ -83,7 +83,11 @@ sub SearchInPath {
83
my $opt = $ENV{$is_cxx ? 'CCC_CXX' : 'CCC_CC'};
84
return $default unless defined $opt;
85
my ($comp, @args) = shellwords($opt);
86
- return !-x $comp && !SearchInPath($comp) ? $default : ($comp, @args);
+ if (!-x $comp && !SearchInPath($comp)) {
87
+ warn "Can't execute '$comp'. Falling back to '$default'.\n";
88
+ return $default;
89
+ }
90
+ return ($comp, @args);
91
}
92
93
0 commit comments