Skip to content

Commit 4ae536e

Browse files
authored
Merge pull request #61144 from kavon/explain-dyld_info-errors
emit a message when falling-back to `xcrun dyldinfo`
2 parents 7a3fe7c + e9ba998 commit 4ae536e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

utils/swift-darwin-postprocess.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def unrpathize(filename):
3939
['xcrun', 'dyld_info', '-dependents', filename],
4040
universal_newlines=True)
4141
except subprocess.CalledProcessError:
42+
sys.stderr.write("falling back to 'xcrun dyldinfo' ...\n")
4243
dylibsOutput = subprocess.check_output(
4344
['xcrun', 'dyldinfo', '-dylibs', filename],
4445
universal_newlines=True)

utils/swift-rpathize.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def rpathize(filename):
6363
['xcrun', 'dyld_info', '-dependents', filename],
6464
universal_newlines=True)
6565
except subprocess.CalledProcessError:
66+
sys.stderr.write("falling back to 'xcrun dyldinfo' ...\n")
6667
dylibsOutput = subprocess.check_output(
6768
['xcrun', 'dyldinfo', '-dylibs', filename],
6869
universal_newlines=True)

0 commit comments

Comments
 (0)