summaryrefslogtreecommitdiffstats
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
commit3759754363979b4eec1afe80305b7b5557c3ac18 (patch)
tree61be30cde42c6a908310568b9f59ebcbbc393aaa
parentbe485b6c7d29875dee8d56a57c5ff0891ee9b2b3 (diff)
downloadbcm5719-llvm-3759754363979b4eec1afe80305b7b5557c3ac18.tar.gz
bcm5719-llvm-3759754363979b4eec1afe80305b7b5557c3ac18.zip
'-o' option now supports relative paths.
llvm-svn: 66680
-rwxr-xr-xclang/utils/scan-build5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/utils/scan-build b/clang/utils/scan-build
index 47622bfd509..1aad3ef1186 100755
--- a/clang/utils/scan-build
+++ b/clang/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;
}
OpenPOWER on IntegriCloud