From f2429b787a17df3708f23ee7093ad2fe99951c3a Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Thu, 12 Mar 2015 19:38:33 +0900 Subject: [PATCH] Bug 1142458 - Make MACOSX_DEPLOYMENT_TARGET part of the cache key. r=mshal The MACOSX_DEPLOYMENT_TARGET environment variable can influence the result of compilation. As such, its value should be part of the cache key. --- server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server.py b/server.py index 5c9f8ec05..364d584bb 100644 --- a/server.py +++ b/server.py @@ -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()