forked from OSchip/llvm-project
[analyzer] scan-build: Handle -m* option wildcard after compiler/linker flags.
Some of the shared compiler/linker flags start with -m, so they've been getting passed to the compiler only since r180073. Now, the -m* wildcard is processed after the shared flags and the ignored flags. Found by Laszlo Nagy! llvm-svn: 193184
This commit is contained in:
parent
debb4cf5ea
commit
476bbb0252
|
|
@ -484,10 +484,6 @@ foreach (my $i = 0; $i < scalar(@ARGV); ++$i) {
|
||||||
while ($Cnt > 0) { ++$i; --$Cnt; push @CompileOpts, $ARGV[$i]; }
|
while ($Cnt > 0) { ++$i; --$Cnt; push @CompileOpts, $ARGV[$i]; }
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
if ($Arg =~ /-m.*/) {
|
|
||||||
push @CompileOpts,$Arg;
|
|
||||||
next;
|
|
||||||
}
|
|
||||||
# Handle the case where there isn't a space after -iquote
|
# Handle the case where there isn't a space after -iquote
|
||||||
if ($Arg =~ /-iquote.*/) {
|
if ($Arg =~ /-iquote.*/) {
|
||||||
push @CompileOpts,$Arg;
|
push @CompileOpts,$Arg;
|
||||||
|
|
@ -549,6 +545,11 @@ foreach (my $i = 0; $i < scalar(@ARGV); ++$i) {
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($Arg =~ /-m.*/) {
|
||||||
|
push @CompileOpts,$Arg;
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
|
||||||
# Language.
|
# Language.
|
||||||
if ($Arg eq '-x') {
|
if ($Arg eq '-x') {
|
||||||
$Lang = $ARGV[$i+1];
|
$Lang = $ARGV[$i+1];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue