aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/build b/build
index 17be3e9a..02014a72 100755
--- a/build
+++ b/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);