From c391f668b5a767a3d003cf3fc7b8b4e7a321a06e Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Sequoia Date: Sat, 17 Jan 2015 17:55:27 -0800 Subject: [PATCH 1002/1007] MacPorts Only: Fix name of scan-view executable inside scan-build http://trac.macports.org/ticket/35006 --- llvm/tools/clang/tools/scan-build/bin/scan-build.orig 2020-05-06 08:57:03.000000000 -0700 +++ llvm/tools/clang/tools/scan-build/bin/scan-build 2020-05-07 12:22:47.000000000 -0700 @@ -969,6 +969,8 @@ if ($Options{ViewResults} and -r "$Options{OutputDir}/index.html") { Diag "Viewing analysis results in '$Options{OutputDir}' using scan-view.\n"; my $ScanView = Cwd::realpath("$RealBin/scan-view"); + if (! -x $ScanView) { $ScanView = Cwd::realpath("$RealBin/bin/scan-view"); } + if (! -x $ScanView) { $ScanView = Cwd::realpath("$RealBin/../scan-view/scan-view"); } if (! -x $ScanView) { $ScanView = "scan-view"; } if (! -x $ScanView) { $ScanView = Cwd::realpath("$RealBin/../../scan-view/bin/scan-view"); } exec $ScanView, "$Options{OutputDir}";