mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
gyp: make cmake python3 compatible
PR-URL: https://github.com/nodejs/node-gyp/pull/1944 Reviewed-By: Christian Clauss <cclauss@me.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This commit is contained in:
parent
9c0f3404f0
commit
d8e09a1b6a
1 changed files with 4 additions and 1 deletions
|
@ -239,6 +239,9 @@ def StringToCMakeTargetName(a):
|
|||
Invalid for make: ':'
|
||||
Invalid for unknown reasons but cause failures: '.'
|
||||
"""
|
||||
try:
|
||||
return a.translate(str.maketrans(' /():."', '_______'))
|
||||
except AttributeError:
|
||||
return a.translate(string.maketrans(' /():."', '_______'))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue