forked from OSchip/llvm-project
[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:
parent
1db1a08dda
commit
3c79212319
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue