summaryrefslogtreecommitdiff
path: root/utils/GenLibDeps.pl
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-08-03 19:10:03 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-08-03 19:10:03 +0000
commitd0fa46aa62604a51e1804d3cdcc64d3172fb52dc (patch)
treeabf36dd992a030003c8e98e03bebed3e08322269 /utils/GenLibDeps.pl
parent1eaf0ac1dc470fb846c16c966d1ffff8213b33ef (diff)
downloadllvm-d0fa46aa62604a51e1804d3cdcc64d3172fb52dc.tar.gz
llvm-d0fa46aa62604a51e1804d3cdcc64d3172fb52dc.tar.bz2
llvm-d0fa46aa62604a51e1804d3cdcc64d3172fb52dc.tar.xz
Print an error message if the lib directory (first argument) is not a
directory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29508 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/GenLibDeps.pl')
-rwxr-xr-xutils/GenLibDeps.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/GenLibDeps.pl b/utils/GenLibDeps.pl
index 9bb4752023..419d8f92d8 100755
--- a/utils/GenLibDeps.pl
+++ b/utils/GenLibDeps.pl
@@ -24,9 +24,10 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
# 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