emit a message when falling-back to xcrun dyldinfo

This commit is contained in:
Kavon Farvardin
2022-09-15 15:36:30 -07:00
parent 1eedefe287
commit e9ba998723
2 changed files with 2 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ def unrpathize(filename):
['xcrun', 'dyld_info', '-dependents', filename],
universal_newlines=True)
except subprocess.CalledProcessError:
sys.stderr.write("falling back to 'xcrun dyldinfo' ...\n")
dylibsOutput = subprocess.check_output(
['xcrun', 'dyldinfo', '-dylibs', filename],
universal_newlines=True)

View File

@@ -63,6 +63,7 @@ def rpathize(filename):
['xcrun', 'dyld_info', '-dependents', filename],
universal_newlines=True)
except subprocess.CalledProcessError:
sys.stderr.write("falling back to 'xcrun dyldinfo' ...\n")
dylibsOutput = subprocess.check_output(
['xcrun', 'dyldinfo', '-dylibs', filename],
universal_newlines=True)