Hi, MSVC10 or later support multiprocess build with the /MP option. (I'm not sure VC9 supports it.)
Attached patch enables this. Build time becomes about 15-20% shorter with this patch. (This patch is inspired by the issue #1259.) Regards, Ken Takata -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
# HG changeset patch # Parent 19618fac7161bc0b856248cf39af5e4e777ca149 diff --git a/src/Make_mvc.mak b/src/Make_mvc.mak --- a/src/Make_mvc.mak +++ b/src/Make_mvc.mak @@ -297,6 +297,9 @@ CPU = ix86 # Flag to turn on Win64 compatibility warnings for VC7.x and VC8. WP64CHECK = /Wp64 +# Use multiprocess build +USE_MP = yes + #>>>>> path of the compiler and linker; name of include and lib directories # PATH = c:\msvc20\bin;$(PATH) # INCLUDE = c:\msvc20\include @@ -473,6 +476,14 @@ NODEFAULTLIB = NODEFAULTLIB = /nodefaultlib !endif +# Use multiprocess build on MSVC 10 +!if "$(USE_MP)"=="yes" +!if $(MSVC_MAJOR) >= 10 +CFLAGS = $(CFLAGS) /MP +!endif +!endif + + !ifdef NODEBUG VIM = vim !if "$(OPTIMIZE)" == "SPACE"
