Skip to content

Commit

Permalink
Bug 1142458 - Make MACOSX_DEPLOYMENT_TARGET part of the cache key. r=…
Browse files Browse the repository at this point in the history
…mshal

The MACOSX_DEPLOYMENT_TARGET environment variable can influence the result of
compilation. As such, its value should be part of the cache key.
  • Loading branch information
glandium committed Apr 14, 2015
1 parent e68dfc2 commit f2429b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server.py
Expand Up @@ -231,6 +231,10 @@ def hash_key(compiler, args, preprocessed):
# modified by code changes (e.g. adding more data)
h.update(str(CacheData.VERSION))
h.update(' '.join(args))
osx_target = os.environ.get('MACOSX_DEPLOYMENT_TARGET')
if osx_target:
h.update('MACOSX_DEPLOYMENT_TARGET=')
h.update(osx_target)
h.update(preprocessed)
return h.hexdigest()

Expand Down

0 comments on commit f2429b7

Please sign in to comment.