node-js: fix build on macOS 12 (#31408)

This commit is contained in:
Adam J. Stewart 2022-07-05 01:42:14 -07:00 committed by GitHub
parent a183b343b9
commit f932a832ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,10 +78,10 @@ def configure_args(self):
if sys.platform == 'darwin':
process_pipe = subprocess.Popen(["which", "libtool"],
stdout=subprocess.PIPE)
result_which = process_pipe.communicate()[0]
result_which = process_pipe.communicate()[0].strip()
process_pipe = subprocess.Popen(["whereis", "libtool"],
stdout=subprocess.PIPE)
result_whereis = process_pipe.communicate()[0]
result_whereis = process_pipe.communicate()[0].strip().split()[-1]
assert result_which == result_whereis, (
'On OSX the system libtool must be used. Please'
'(temporarily) remove \n %s or its link to libtool from'