libgit2/libgit2 — pull request #605 by benstraub (2012-03-21 03:49:05+00:00)
Title: Adding multi-cpu compile option when generating MSVC projects.

This adds the `/MP` option when calling `cl.exe` in the MSVC toolchain. This results in a nice reduction of compile time. I tried this by running clean and slightly-dirty builds, using msbuild with options that closely mimic the behavior with Visual Studio but with more information.

Description
Time (without flag, seconds)
Time (with flag, seconds)

Clean build
75.74
56.41

Added a test
31.02
21.83

You can see the full logs [here](https://gist.github.com/2144073). "Change" builds were generated by adding this line to `tests-clar/commit/commit.c`:

void test_commit_commit__new_test(void) {}

The command for building was this:

msbuild .\libgit2.sln /m /detailedsummary