mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
build: Do not clobber existing values of CL environment variable.
Change-Id: I88708560e0885fefa149aec7bd9789e585a79d57 Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
feb89e2305
commit
38adcf8077
9
build
9
build
@@ -211,8 +211,13 @@ sub detect_configuration
|
||||
|
||||
# Use the /MP compiler option, if using nmake, to use all CPU threads when compiling
|
||||
if ($exe =~ 'nmake') {
|
||||
use Env qw(@CL);
|
||||
unshift @CL, '/MP';
|
||||
my $cl = $ENV{'CL'};
|
||||
if (defined $cl) {
|
||||
$cl .= ' /MP';
|
||||
} else {
|
||||
$cl = '/MP';
|
||||
}
|
||||
$ENV{'CL'} = $cl;
|
||||
}
|
||||
|
||||
$self->{'MAKE'} = "\"$exe\"" if (defined $exe);
|
||||
|
||||
Reference in New Issue
Block a user