[PATCH] D77880: get scan-view executable from environment
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 20 05:23:56 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3f333e0af7a8: [analyzer] Get scan-view executable from environment. (authored by dergachev.a).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77880/new/
https://reviews.llvm.org/D77880
Files:
clang/tools/scan-build/bin/scan-build
Index: clang/tools/scan-build/bin/scan-build
===================================================================
--- clang/tools/scan-build/bin/scan-build
+++ clang/tools/scan-build/bin/scan-build
@@ -971,6 +971,7 @@
my $ScanView = Cwd::realpath("$RealBin/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; }
exec $ScanView, "$Options{OutputDir}";
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77880.265211.patch
Type: text/x-patch
Size: 578 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200520/d9d103e7/attachment.bin>
More information about the cfe-commits
mailing list