mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Print an error message if the lib directory (first argument) is not a
directory. llvm-svn: 29508
This commit is contained in:
parent
55dad5c6ac
commit
7b84a401c4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user