From 1bb478c260682b6597f7b7f84ce529ef2e7be4e3 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Sequoia Date: Sat, 17 Jan 2015 17:55:27 -0800 Subject: [PATCH] MacPorts Only: Fix name of scan-view executable inside scan-build http://trac.macports.org/ticket/35006 --- clang/tools/scan-build/bin/scan-build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/tools/scan-build/bin/scan-build b/clang/tools/scan-build/bin/scan-build index 11334a0b9626..e4194b6a762c 100755 --- a/clang/tools/scan-build/bin/scan-build +++ b/clang/tools/scan-build/bin/scan-build @@ -969,6 +969,8 @@ sub Finalize { 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"); } if (! -x $ScanView) { $ScanView = `which scan-view`; chomp $ScanView; } -- 2.37.2