diff options
| author | Mat M <mathew1800@gmail.com> | 2017-01-25 19:16:13 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-25 19:16:13 -0500 |
| commit | ec9b49436c733740dc78c262e4111b65f563d9ff (patch) | |
| tree | 0f1459993f53c5d35e730aa13abf2b71872e8650 | |
| parent | f1e9c017961816ce9d340a0c04f0f2abfe0304b9 (diff) | |
| parent | 4f4b2f15d3ee812910ba4dd96f12c16a734107a9 (diff) | |
Merge pull request #4754 from Orphis/deploy_mac_fix
macOS: Fix deploy-mac.py which fails when no dylib path has to be cha…
| -rwxr-xr-x | Tools/deploy-mac.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/deploy-mac.py b/Tools/deploy-mac.py index 8305a43046..80976d3f9a 100755 --- a/Tools/deploy-mac.py +++ b/Tools/deploy-mac.py @@ -120,7 +120,10 @@ def updateMachO(bin, execPath, root): print('Updating Mach-O id from {} to {}...'.format(oldExecPath, newExecPath)) args.extend(['-id', newExecPath]) args.append(bin) - subprocess.check_call(args) + + # Check we actually have to update some paths + if len(args) > 2: + subprocess.check_call(args) if __name__ == '__main__': parser = argparse.ArgumentParser() |
