depfixer: Run install_name_tool only once while deleting rpaths

pull/3385/merge
Nirbheek Chauhan 7 years ago committed by Nirbheek Chauhan
parent a6c9f98c57
commit 9f616e98bf
  1. 7
      mesonbuild/scripts/depfixer.py

@ -372,8 +372,11 @@ def fix_darwin(fname, new_rpath):
# non-executable target. Just return.
return
try:
for rp in rpaths:
subprocess.check_call(['install_name_tool', '-delete_rpath', rp, fname],
if rpaths:
args = []
for rp in rpaths:
args += ['-delete_rpath', rp]
subprocess.check_call(['install_name_tool', fname] + args,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL)
if new_rpath:

Loading…
Cancel
Save