summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2009-08-10 11:48:50 +0000
committerMagnus Hagander <magnus@hagander.net>2009-08-10 11:48:50 +0000
commit1d6ddebd823f17273e5de8d48b513733a5969644 (patch)
tree796dc4994183afc4048e346948f18d592d7a6dc8 /src
parentbbe2168e658fb666777e408d752fd16cd996c8e4 (diff)
Enable the use of multiple CPUs/cores when building on MSVC. This only
affects the C compiler step - we still only build one target at a time.
Diffstat (limited to 'src')
-rw-r--r--src/tools/msvc/Project.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/msvc/Project.pm b/src/tools/msvc/Project.pm
index 56f29098040..27ac3caf040 100644
--- a/src/tools/msvc/Project.pm
+++ b/src/tools/msvc/Project.pm
@@ -3,7 +3,7 @@ package Project;
#
# Package that encapsulates a Visual C++ project file generation
#
-# $PostgreSQL: pgsql/src/tools/msvc/Project.pm,v 1.16.2.1 2008/04/15 16:23:21 adunstan Exp $
+# $PostgreSQL: pgsql/src/tools/msvc/Project.pm,v 1.16.2.2 2009/08/10 11:48:50 mha Exp $
#
use Carp;
use strict;
@@ -498,6 +498,7 @@ sub WriteConfiguration
PreprocessorDefinitions="WIN32;_WINDOWS;__WINDOWS__;__WIN32__;EXEC_BACKEND;WIN32_STACK_RLIMIT=4194304;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_USE_32BIT_TIME_T$self->{defines}$p->{defs}"
StringPooling="$p->{strpool}"
RuntimeLibrary="$p->{runtime}" DisableSpecificWarnings="$self->{disablewarnings}"
+ AdditionalOptions="/MP"
EOF
print $f <<EOF;
AssemblerOutput="0" AssemblerListingLocation=".\\$cfgname\\$self->{name}\\" ObjectFile=".\\$cfgname\\$self->{name}\\"