From: Jordan Rose Date: Tue, 29 Apr 2014 01:37:19 +0000 (+0000) Subject: scan-build: Don't use realpath when the user provides an explicit path. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31557758c6e720e0fb9abb7260f3e439acde1259;p=clang scan-build: Don't use realpath when the user provides an explicit path. PR19583 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207484 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build index 31dbfb4f25..03cdac3d9d 100755 --- a/tools/scan-build/scan-build +++ b/tools/scan-build/scan-build @@ -1584,7 +1584,7 @@ else { } } else { - $Clang = Cwd::realpath($AnalyzerDiscoveryMethod); + $Clang = $AnalyzerDiscoveryMethod; if (!defined $Clang or not -x $Clang) { DieDiag("Cannot find an executable clang at '$AnalyzerDiscoveryMethod'\n"); }