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,7 +239,10 @@ def StringToCMakeTargetName(a):
|
||||||
Invalid for make: ':'
|
Invalid for make: ':'
|
||||||
Invalid for unknown reasons but cause failures: '.'
|
Invalid for unknown reasons but cause failures: '.'
|
||||||
"""
|
"""
|
||||||
return a.translate(string.maketrans(' /():."', '_______'))
|
try:
|
||||||
|
return a.translate(str.maketrans(' /():."', '_______'))
|
||||||
|
except AttributeError:
|
||||||
|
return a.translate(string.maketrans(' /():."', '_______'))
|
||||||
|
|
||||||
|
|
||||||
def WriteActions(target_name, actions, extra_sources, extra_deps,
|
def WriteActions(target_name, actions, extra_sources, extra_deps,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue