|
9 | 9 | #include "lldb/Host/Host.h"
|
10 | 10 |
|
11 | 11 | #include <AvailabilityMacros.h>
|
12 |
| -#include <TargetConditionals.h> |
13 | 12 |
|
14 | 13 | // On device doesn't have supporty for XPC.
|
15 |
| -#if defined(__APPLE__) && defined(TARGET_OS_EMBEDDED) |
| 14 | +#if defined(__APPLE__) && (defined(__arm64__) || defined(__aarch64__)) |
16 | 15 | #define NO_XPC_SERVICES 1
|
17 | 16 | #endif
|
18 | 17 |
|
|
136 | 135 | return false;
|
137 | 136 | }
|
138 | 137 |
|
139 |
| -#if !NO_XPC_SERVICES |
140 |
| - |
141 | 138 | static void *AcceptPIDFromInferior(void *arg) {
|
142 | 139 | const char *connect_url = (const char *)arg;
|
143 | 140 | ConnectionFileDescriptor file_conn;
|
|
156 | 153 | return NULL;
|
157 | 154 | }
|
158 | 155 |
|
| 156 | +#if !defined(__arm__) && !defined(__arm64__) && !defined(__aarch64__) |
| 157 | + |
159 | 158 | const char *applscript_in_new_tty = "tell application \"Terminal\"\n"
|
160 | 159 | " activate\n"
|
161 | 160 | " do script \"/bin/bash -c '%s';exit\"\n"
|
@@ -308,11 +307,11 @@ repeat with the_window in (get windows)\n\
|
308 | 307 | return error;
|
309 | 308 | }
|
310 | 309 |
|
311 |
| -#endif // #if !NO_XPC_SERVICES |
| 310 | +#endif // #if !defined(__arm__) && !defined(__arm64__) && !defined(__aarch64__) |
312 | 311 |
|
313 | 312 | bool Host::OpenFileInExternalEditor(const FileSpec &file_spec,
|
314 | 313 | uint32_t line_no) {
|
315 |
| -#if NO_XPC_SERVICES |
| 314 | +#if defined(__arm__) || defined(__arm64__) || defined(__aarch64__) |
316 | 315 | return false;
|
317 | 316 | #else
|
318 | 317 | // We attach this to an 'odoc' event to specify a particular selection
|
@@ -405,7 +404,7 @@ repeat with the_window in (get windows)\n\
|
405 | 404 | }
|
406 | 405 |
|
407 | 406 | return true;
|
408 |
| -#endif // #if !NO_XPC_SERVICES |
| 407 | +#endif // #if !defined(__arm__) && !defined(__arm64__) && !defined(__aarch64__) |
409 | 408 | }
|
410 | 409 |
|
411 | 410 | Environment Host::GetEnvironment() { return Environment(*_NSGetEnviron()); }
|
@@ -1264,7 +1263,7 @@ static bool ShouldLaunchUsingXPC(ProcessLaunchInfo &launch_info) {
|
1264 | 1263 | }
|
1265 | 1264 |
|
1266 | 1265 | if (launch_info.GetFlags().Test(eLaunchFlagLaunchInTTY)) {
|
1267 |
| -#if !NO_XPC_SERVICES |
| 1266 | +#if !defined(__arm__) && !defined(__arm64__) && !defined(__aarch64__) |
1268 | 1267 | return LaunchInNewTerminalWithAppleScript(exe_spec.GetPath().c_str(),
|
1269 | 1268 | launch_info);
|
1270 | 1269 | #else
|
|
0 commit comments