enable incremental linking by default when using ninja on Windows

BUG=125748
TEST=ninja windows links


Review URL: https://chromiumcodereview.appspot.com/10366002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151930 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/build/common.gypi b/build/common.gypi
index 41fe628..c85107eb 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -703,7 +703,7 @@
     # Needed for some of the largest modules.
     'msvs_debug_link_nonincremental%': '1',
 
-    # Turn on Use Library Dependency Inputs for linking chrome.dll on Windows
+    # Turns on Use Library Dependency Inputs for linking chrome.dll on Windows
     # to get incremental linking to be faster in debug builds.
     'incremental_chrome_dll%': '0',
 
@@ -1046,6 +1046,10 @@
           ['component=="shared_library"', {
             'win_use_allocator_shim%': 0,
           }],
+          ['"<(GENERATOR)"=="ninja"', {
+            # Only enabled by default for ninja because it's buggy in VS.
+            'incremental_chrome_dll%': 1,
+          }],
           # Whether to use multiple cores to compile with visual studio. This is
           # optional because it sometimes causes corruption on VS 2005.
           # It is on by default on VS 2008 and off on VS 2005.