[Host] Check for TARGET_OS_EMBEDDED instead of listing architectures.

With the advent of Apple Silicon, checking for the architectures
specifically is not correct anymore. This code is only supposed to
run on embedded devices (iPhones et similia), so mark it accordingly.
This commit is contained in:
Davide Italiano 2020-06-23 12:24:53 -07:00
parent 1db1a08dda
commit 3c79212319
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ bool HostInfoMacOSX::ComputeSupportExeDirectory(FileSpec &file_spec) {
size_t framework_pos = raw_path.find("LLDB.framework");
if (framework_pos != std::string::npos) {
framework_pos += strlen("LLDB.framework");
#if defined(__arm__) || defined(__arm64__) || defined(__aarch64__)
#if TARGET_OS_EMBEDDED
// Shallow bundle
raw_path.resize(framework_pos);
#else