aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2009-07-27 07:11:15 +0000
committerMagnus Hagander <magnus@hagander.net>2009-07-27 07:11:15 +0000
commit220e36c97fe86ea12fe86d7ed1572dd5bcd223a0 (patch)
tree8c661bae97aa9792f6ee041fe928a8662f27ea66 /src
parentaac3c301b5e8178841e5749b3657c1a639ba06c1 (diff)
downloadpostgresql-220e36c97fe86ea12fe86d7ed1572dd5bcd223a0.tar.gz
postgresql-220e36c97fe86ea12fe86d7ed1572dd5bcd223a0.zip
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 385b757ed72..53b55cd5913 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.19 2008/04/15 16:22:36 adunstan Exp $
+# $PostgreSQL: pgsql/src/tools/msvc/Project.pm,v 1.20 2009/07/27 07:11:15 mha Exp $
#
use Carp;
use strict;
@@ -501,6 +501,7 @@ sub WriteConfiguration
PreprocessorDefinitions="WIN32;_WINDOWS;__WINDOWS__;__WIN32__;EXEC_BACKEND;WIN32_STACK_RLIMIT=4194304;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE$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}\\"