From e9ba998723ca92de7a8a5196888ab922b22cbc26 Mon Sep 17 00:00:00 2001 From: Kavon Farvardin Date: Thu, 15 Sep 2022 15:36:30 -0700 Subject: [PATCH] emit a message when falling-back to `xcrun dyldinfo` --- utils/swift-darwin-postprocess.py | 1 + utils/swift-rpathize.py | 1 + 2 files changed, 2 insertions(+) diff --git a/utils/swift-darwin-postprocess.py b/utils/swift-darwin-postprocess.py index 02b37b8fa90..2fd8ced29e4 100755 --- a/utils/swift-darwin-postprocess.py +++ b/utils/swift-darwin-postprocess.py @@ -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) diff --git a/utils/swift-rpathize.py b/utils/swift-rpathize.py index 655113d872e..cbf5f68a09a 100755 --- a/utils/swift-rpathize.py +++ b/utils/swift-rpathize.py @@ -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)