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 b086d3e commit 805396fCopy full SHA for 805396f
clang/tools/scan-build/libexec/ccc-analyzer
@@ -78,7 +78,7 @@ sub DetermineClang {
78
my ($is_cxx) = @_;
79
my $default = $is_cxx ? 'clang++' : 'clang';
80
my $opt = $ENV{$is_cxx ? 'CLANG_CXX' : 'CLANG'};
81
- return !defined $opt || !-x $opt ? $default : $opt;
+ return defined $opt ? $opt : $default;
82
}
83
84
my $IsCXX = $FindBin::Script =~ /c\+\+-analyzer/;
0 commit comments