Skip to content

Commit

Permalink
Print an error message if the lib directory (first argument) is not a
Browse files Browse the repository at this point in the history
directory.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29508 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Reid Spencer committed Aug 3, 2006
1 parent 1eaf0ac commit d0fa46a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/GenLibDeps.pl
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@

# Give first option a name.
my $Directory = $ARGV[0];
if (!defined($Directory)) {
die "First argument must be the directory containing LLVM libs\n";
if (!defined($Directory) || ! -d "$Directory") {
die "First argument must specify the directory containing LLVM libs\n";
}

my $nmPath = $ARGV[1];

# Find the "dot" program
Expand Down

0 comments on commit d0fa46a

Please sign in to comment.