mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-05 10:48:29 +00:00
Improve aarch64 native support some more
This change introduces partial support for automating remote testing of aarch64 binaries on Raspberry Pi and Apple Silicon.
This commit is contained in:
parent
fc34ba2596
commit
4aa1d09b9e
20 changed files with 185 additions and 82 deletions
|
@ -432,11 +432,20 @@ void HandleClient(void) {
|
|||
sigaction(SIGQUIT, &(struct sigaction){0}, 0);
|
||||
sigprocmask(SIG_SETMASK, &savemask, 0);
|
||||
int i = 0;
|
||||
char *args[4] = {0};
|
||||
const char *exe;
|
||||
char *args[8] = {0};
|
||||
if (!IsXnuSilicon()) {
|
||||
exe = g_exepath;
|
||||
} else {
|
||||
exe = "ape-m1.com";
|
||||
args[i++] = exe;
|
||||
args[i++] = "-";
|
||||
args[i++] = g_exepath;
|
||||
}
|
||||
args[i++] = g_exepath;
|
||||
if (use_strace) args[i++] = "--strace";
|
||||
if (use_ftrace) args[i++] = "--ftrace";
|
||||
execv(g_exepath, args);
|
||||
execvp(exe, args);
|
||||
_Exit(127);
|
||||
}
|
||||
close(pipefds[1]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue