diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2014-07-10 14:18:03 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2014-07-10 14:18:03 +0000 |
commit | de165795f54548661367c73127267402f367f234 (patch) | |
tree | 0bf67163350067ef999b4514060be1b82e8bbdb6 /modules | |
parent | 05e6744581f69e5d5df70b094f704069e904b17a (diff) | |
download | MPC-de165795f54548661367c73127267402f367f234.tar.gz |
ChangeLogTag: Thu Jul 10 14:17:10 UTC 2014 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/Depgen/Driver.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/Depgen/Driver.pm b/modules/Depgen/Driver.pm index a5e715aa..b2fe681c 100644 --- a/modules/Depgen/Driver.pm +++ b/modules/Depgen/Driver.pm @@ -165,24 +165,24 @@ sub run { if ($arg =~ /^\-D(\w+)(=(.*))?/) { $macros{$1} = $3; } - elsif ($arg =~ /^\-I(.*)/) { + elsif ($arg =~ /^\-(I|isystem)(.*)/) { # support '-Idir' and '-I dir' - if ('' ne $1) { - push(@ipaths, File::Spec->canonpath($1)); + my $opt = $1; + if ('' ne $2) { + push(@ipaths, File::Spec->canonpath($2)); } else { # get next arg if (++$i < $argc) { $arg = $$args[$i]; if ($arg =~ /^\-/) { - $self->usageAndExit('Invalid use of -I'); + $self->usageAndExit('Invalid use of -' . $opt); } push(@ipaths, File::Spec->canonpath($arg)); - } else { - $self->usageAndExit('Invalid use of -I'); + $self->usageAndExit('Invalid use of -' . $opt); } } } |