--- tools/clang/tools/scan-build/scan-build.orig +++ tools/clang/tools/scan-build/scan-build @@ -419,7 +419,7 @@ my $Dir = shift; - my $JS = Cwd::realpath("$RealBin/sorttable.js"); + my $JS = Cwd::realpath("%%DATADIR%%/sorttable.js"); DieDiag("Cannot find 'sorttable.js'.\n") if (! -r $JS); @@ -429,7 +429,7 @@ DieDiag("Could not copy 'sorttable.js' to '$Dir'.\n") if (! -r "$Dir/sorttable.js"); - my $CSS = Cwd::realpath("$RealBin/scanview.css"); + my $CSS = Cwd::realpath("%%DATADIR%%/scanview.css"); DieDiag("Cannot find 'scanview.css'.\n") if (! -r $CSS); @@ -853,7 +853,7 @@ my $Num = scalar(@Index); Diag("$Num bugs found.\n"); if ($Num > 0 && -r "$Dir/index.html") { - Diag("Run 'scan-view $Dir' to examine bug reports.\n"); + Diag("Run 'scan-view%%LLVM_SUFFIX%% $Dir' to examine bug reports.\n"); } DiagCrashes($Dir) if (scalar @failures || scalar @attributes_ignored);