]> granicus.if.org Git - clang/commitdiff
'-o' option now supports relative paths.
authorTed Kremenek <kremenek@apple.com>
Wed, 11 Mar 2009 18:20:33 +0000 (18:20 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 11 Mar 2009 18:20:33 +0000 (18:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66680 91177308-0d34-0410-b5e6-96231b3b80d8

utils/scan-build

index 47622bfd509808c5da85c028688f67ee16806729..1aad3ef118680dcc2b7f78488b5dd8f01b3ad19f 100755 (executable)
@@ -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;
   }