diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-03-17 14:28:34 -0700 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-03-17 14:41:45 -0700 |
| commit | 7aa28995e87f6cec2e02608c978885cf01dcc65d (patch) | |
| tree | fbe4d50d62941b5e6b17d8f1f7e91e09623208a7 /lldb/packages/Python/lldbsuite/test/lock.py | |
| parent | d177c36e5c403b24af7e8944e3a8c1b79270bfe1 (diff) | |
| download | llvm-7aa28995e87f6cec2e02608c978885cf01dcc65d.zip llvm-7aa28995e87f6cec2e02608c978885cf01dcc65d.tar.gz llvm-7aa28995e87f6cec2e02608c978885cf01dcc65d.tar.bz2 | |
[lldb/PlatformDarwin] Be more robust in computing the SDK path with xcrun
The current implementation isn't very resilient when it comes to the
output of xcrun. Currently it cannot deal with:
- Trailing newlines.
- Leading newlines and errors/warnings before the Xcode path.
- Xcode not being named Xcode.app.
This extract the logic into a helper in PlatformDarwin and fixes those
issues. It's also the first step towards removing code duplication
between the different platforms and downstream Swift.
Differential revision: https://reviews.llvm.org/D76261
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lock.py')
0 files changed, 0 insertions, 0 deletions
