Skip to content

Commit

Permalink
fix encoding as sugested by @cclaus
Browse files Browse the repository at this point in the history
  • Loading branch information
dothebart committed Oct 17, 2019
1 parent 19012c8 commit 34dcfad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gyp/pylib/gyp/generator/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -1776,7 +1776,8 @@ def WriteMakeRule(self, outputs, inputs, actions=None, comment=None,
# - The multi-output rule will have an do-nothing recipe.

# Hash the target name to avoid generating overlong filenames.
cmddigest = hashlib.sha1(command.encode('utf-8') if command else self.target.encode('utf-8')).hexdigest()

cmddigest = hashlib.sha1((command or self.target).encode('utf-8')).hexdigest()
intermediate = "%s.intermediate" % cmddigest
self.WriteLn('%s: %s' % (' '.join(outputs), intermediate))
self.WriteLn('\t%s' % '@:')
Expand Down

0 comments on commit 34dcfad

Please sign in to comment.