Skip to content

Commit 805396f

Browse files
committed
[clang][scan-build] Mirror CCC_{CC,CXX} behaviour for CLANG{,_CXX}
1 parent b086d3e commit 805396f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/scan-build/libexec/ccc-analyzer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ sub DetermineClang {
7878
my ($is_cxx) = @_;
7979
my $default = $is_cxx ? 'clang++' : 'clang';
8080
my $opt = $ENV{$is_cxx ? 'CLANG_CXX' : 'CLANG'};
81-
return !defined $opt || !-x $opt ? $default : $opt;
81+
return defined $opt ? $opt : $default;
8282
}
8383

8484
my $IsCXX = $FindBin::Script =~ /c\+\+-analyzer/;

0 commit comments

Comments
 (0)