| Index: pylib/gyp/generator/ninja.py
|
| diff --git a/pylib/gyp/generator/ninja.py b/pylib/gyp/generator/ninja.py
|
| index 2def4b1c18817348bb4bd1de90ec8ec4f44a3bad..5a4777e7d49b7f9dbaed894f14fa489e08da37b5 100644
|
| --- a/pylib/gyp/generator/ninja.py
|
| +++ b/pylib/gyp/generator/ninja.py
|
| @@ -9,6 +9,7 @@ import gyp.msvs_emulation
|
| import gyp.MSVSVersion
|
| import gyp.system_test
|
| import gyp.xcode_emulation
|
| +import hashlib
|
| import os.path
|
| import re
|
| import subprocess
|
| @@ -616,7 +617,7 @@ class NinjaWriter:
|
| inputs = map(self.GypPathToNinja, inputs)
|
| outputs = map(self.GypPathToNinja, outputs)
|
| extra_bindings.append(('unique_name',
|
| - re.sub('[^a-zA-Z0-9_]', '_', outputs[0])))
|
| + hashlib.md5(re.sub('[^a-zA-Z0-9_]', '_', outputs[0])).hexdigest()))
|
| self.ninja.build(outputs, rule_name, self.GypPathToNinja(source),
|
| implicit=inputs,
|
| order_only=prebuild,
|
| @@ -1101,7 +1102,7 @@ class NinjaWriter:
|
| if self.toolset == 'target':
|
| rule_name += '.' + self.toolset
|
| rule_name += '.' + name
|
| - rule_name = re.sub('[^a-zA-Z0-9_]', '_', rule_name)
|
| + rule_name = hashlib.md5(re.sub('[^a-zA-Z0-9_]', '_', rule_name)).hexdigest()
|
|
|
| args = args[:]
|
|
|
|
|