Index: build/gyp_helper.py |
diff --git a/build/gyp_helper.py b/build/gyp_helper.py |
index 645943a0183217b955e79af284e842ab3bee883d..a2cc7e19cbc3578ba863e9ea214af78dafd48846 100644 |
--- a/build/gyp_helper.py |
+++ b/build/gyp_helper.py |
@@ -42,8 +42,12 @@ def apply_gyp_environment_from_file(file_path): |
file_val = file_data.get(var) |
if file_val: |
if var in os.environ: |
- print 'INFO: Environment value for "%s" overrides value in %s.' % ( |
- var, os.path.abspath(file_path) |
+ behavior = 'replaces' |
+ if var == 'GYP_DEFINES': |
+ os.environ[var] = file_val + ' ' + os.environ[var] |
+ behavior = 'overrides' |
+ print 'INFO: Environment value for "%s" %s value in %s' % ( |
+ var, behavior, os.path.abspath(file_path) |
) |
else: |
os.environ[var] = file_val |