Update from https://crrev.com/302630

Review URL: https://codereview.chromium.org/693943003
diff --git a/build/landmine_utils.py b/build/landmine_utils.py
index 7737832..9b667d0 100644
--- a/build/landmine_utils.py
+++ b/build/landmine_utils.py
@@ -48,6 +48,12 @@
       for arg in shlex.split(os.environ.get('GYP_DEFINES', '')))
 
 @memoize()
+def gyp_generator_flags():
+  """Parses and returns GYP_GENERATOR_FLAGS env var as a dictionary."""
+  return dict(arg.split('=', 1)
+      for arg in shlex.split(os.environ.get('GYP_GENERATOR_FLAGS', '')))
+
+@memoize()
 def gyp_msvs_version():
   return os.environ.get('GYP_MSVS_VERSION', '')