mirror of https://github.com/qt/qtbase.git
move the module validation below the loading of sync.profile
otherwise the -module option will always die. Change-Id: I023ea5681a03a2848e1084eedbbcc66f8d060b69 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
parent
0fae8b50f7
commit
695051f3be
|
@ -739,8 +739,6 @@ while ( @ARGV ) {
|
|||
$minimal--;
|
||||
}
|
||||
} elsif ($var eq "module") {
|
||||
print "module :$val:\n" if($verbose_level);
|
||||
die "No such module: $val" unless(defined $modules{$val});
|
||||
push @modules_to_sync, $val;
|
||||
} elsif ($var eq "separate-module") {
|
||||
my ($module, $prodir, $headerdir) = split(/:/, $val);
|
||||
|
@ -802,6 +800,8 @@ if (length($qt_version)) {
|
|||
$qt_version =~ s,.*^#\h*define\h+QT_VERSION_STR\h+"([^"]+)".*,$1,sm;
|
||||
}
|
||||
foreach my $lib (@modules_to_sync) {
|
||||
die "No such module: $lib" unless(defined $modules{$lib});
|
||||
|
||||
#iteration info
|
||||
my $dir = $modules{$lib};
|
||||
|
||||
|
|
Loading…
Reference in New Issue