diff options
| author | Ted Kremenek <kremenek@apple.com> | 2009-03-11 18:20:33 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2009-03-11 18:20:33 +0000 |
| commit | 3759754363979b4eec1afe80305b7b5557c3ac18 (patch) | |
| tree | 61be30cde42c6a908310568b9f59ebcbbc393aaa /clang | |
| parent | be485b6c7d29875dee8d56a57c5ff0891ee9b2b3 (diff) | |
| download | bcm5719-llvm-3759754363979b4eec1afe80305b7b5557c3ac18.tar.gz bcm5719-llvm-3759754363979b4eec1afe80305b7b5557c3ac18.zip | |
'-o' option now supports relative paths.
llvm-svn: 66680
Diffstat (limited to 'clang')
| -rwxr-xr-x | clang/utils/scan-build | 5 |
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; } |

