Index: build/landmine_utils.py |
diff --git a/build/landmine_utils.py b/build/landmine_utils.py |
index 773783291f25397eea5a97c6a8e984a71743b13f..9b667d0916aadb7962bf615c33af0e59840d0adf 100644 |
--- a/build/landmine_utils.py |
+++ b/build/landmine_utils.py |
@@ -48,6 +48,12 @@ def gyp_defines(): |
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', '') |