Skip to content

Commit b07a6da

Browse files
authored
[scan-build][Windows] Fix driver name transformation in scan-build (#143135)
On Windows system, scan-build resolves clang++ driver name as "clang-{ver}++.exe" from "clang-{ver}.exe" but should transform to "clang++.exe".
1 parent 1f30e3d commit b07a6da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/scan-build/bin/scan-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1898,7 +1898,7 @@ if ($Clang !~ /\+\+(\.exe)?$/) {
18981898
# Determine operating system under which this copy of Perl was built.
18991899
my $IsWinBuild = ($^O =~/msys|cygwin|MSWin32/);
19001900
if($IsWinBuild) {
1901-
$ClangCXX =~ s/.exe$/++.exe/;
1901+
$ClangCXX =~ s/\-\d+(\.\d+)?.exe$/++.exe/;
19021902
}
19031903
else {
19041904
$ClangCXX =~ s/\-\d+(\.\d+)?$//;

0 commit comments

Comments
 (0)