Enable the use of multiple CPUs/cores when building on MSVC. This only
authorMagnus Hagander <magnus@hagander.net>
Mon, 27 Jul 2009 07:11:15 +0000 (07:11 +0000)
committerMagnus Hagander <magnus@hagander.net>
Mon, 27 Jul 2009 07:11:15 +0000 (07:11 +0000)
affects the C compiler step - we still only build one target at a
time.

src/tools/msvc/Project.pm

index 22beaf720f25d22327170adc847867e8af709cb5..4a7084d7e0e3b44f0379ae48bb0e9343027512b2 100644 (file)
@@ -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}\\"