aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-11 18:20:33 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-11 18:20:33 +0000
commitdb51a55c4922b055a90a370ce9906455887a8564 (patch)
treef92d8d5cefc041bbf734b976d6af0dc7f4861131
parent344d4c8726e5fb7dfac42eeaef2c0df02d2059b0 (diff)
'-o' option now supports relative paths.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66680 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xutils/scan-build5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/scan-build b/utils/scan-build
index 47622bfd50..1aad3ef118 100755
--- a/utils/scan-build
+++ b/utils/scan-build
@@ -1038,7 +1038,10 @@ while (@ARGV) {
DieDiag("'-o' option requires a target directory name.\n");
}
- $HtmlDir = shift @ARGV;
+ # Construct an absolute path. Uses the current working directory
+ # as a base if the original path was not absolute.
+ $HtmlDir = abs_path(shift @ARGV);
+
next;
}