From de851daf838bf4bce181f7f944c5244106cb5aea Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Sequoia Date: Sat, 17 Jan 2015 17:55:27 -0800 Subject: [PATCH 1002/1008] MacPorts Only: Fix name of scan-view executable inside scan-build http://trac.macports.org/ticket/35006 Signed-off-by: Jeremy Huddleston Sequoia --- tools/scan-build/bin/scan-build | 2 ++ 1 file changed, 2 insertions(+) diff --git llvm_release_80/tools/clang/tools/scan-build/bin/scan-build macports_release_80/tools/clang/tools/scan-build/bin/scan-build index fd0dd66b2d..bd5340c6b6 100755 --- llvm_release_80/tools/clang/tools/scan-build/bin/scan-build +++ macports_release_80/tools/clang/tools/scan-build/bin/scan-build @@ -1915,6 +1915,8 @@ if (defined $Options{OutputFormat}) { Diag "Analysis run complete.\n"; 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}"; -- 2.20.1 (Apple Git-116)