node-js: fix build on macOS 12 (#31408)
This commit is contained in:
parent
a183b343b9
commit
f932a832ac
@ -78,10 +78,10 @@ def configure_args(self):
|
|||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
process_pipe = subprocess.Popen(["which", "libtool"],
|
process_pipe = subprocess.Popen(["which", "libtool"],
|
||||||
stdout=subprocess.PIPE)
|
stdout=subprocess.PIPE)
|
||||||
result_which = process_pipe.communicate()[0]
|
result_which = process_pipe.communicate()[0].strip()
|
||||||
process_pipe = subprocess.Popen(["whereis", "libtool"],
|
process_pipe = subprocess.Popen(["whereis", "libtool"],
|
||||||
stdout=subprocess.PIPE)
|
stdout=subprocess.PIPE)
|
||||||
result_whereis = process_pipe.communicate()[0]
|
result_whereis = process_pipe.communicate()[0].strip().split()[-1]
|
||||||
assert result_which == result_whereis, (
|
assert result_which == result_whereis, (
|
||||||
'On OSX the system libtool must be used. Please'
|
'On OSX the system libtool must be used. Please'
|
||||||
'(temporarily) remove \n %s or its link to libtool from'
|
'(temporarily) remove \n %s or its link to libtool from'
|
||||||
|
Loading…
Reference in New Issue
Block a user