From d5a790d455f3e9780c27eae4b2f31c019bbe0f80 Mon Sep 17 00:00:00 2001 From: BenceSzalai Date: Thu, 1 May 2025 18:10:45 +0200 Subject: [PATCH] Try to better adhere to existing line length conventions --- ape/ape.S | 5 ++++- tool/build/apelink.c | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ape/ape.S b/ape/ape.S index 37d2087d0..9a6e7378f 100644 --- a/ape/ape.S +++ b/ape/ape.S @@ -616,7 +616,10 @@ apesh: .ascii "\n@\n#'\"\n" // sixth edition shebang #if SupportsXnu() // Add an architecture suffix to the temporary APE Loader // name to differentiate between x86_64 and arm64. - .ascii "[ -d /Applications ] && t=\"${t}-$(uname -m 2>/dev/null || printf 'unknown')\"\n" + .ascii "[ -d /Applications ] && " + .ascii "t=\"${t}-$(" + .ascii "uname -m 2>/dev/null || printf 'unknown'" + .ascii ")\"\n" #endif /* SupportsXnu() */ .ascii "[ -x \"$t\" ] || {\n" .ascii "mkdir -p \"${t%/*}\" &&\n" diff --git a/tool/build/apelink.c b/tool/build/apelink.c index 3be091641..3408abd18 100644 --- a/tool/build/apelink.c +++ b/tool/build/apelink.c @@ -2018,9 +2018,10 @@ int main(int argc, char *argv[]) { if (loaders.n) { p = stpcpy(p, "t=\"${TMPDIR:-${HOME:-.}}/.ape-" APE_VERSION_STR); if (support_vector & _HOSTXNU) { - // Add the current architecture to the temporary APE Loader - // name to differentiate between x86_64 and arm64 Ape Loaders. - p = stpcpy(p, "$([ -d /Applications ] && ( printf '-'; ( uname -m 2>/dev/null || printf 'unknown')))"); + // Add an architecture suffix to the temporary APE Loader + // name to differentiate between x86_64 and arm64. + p = stpcpy(p, "$([ -d /Applications ] && ( printf '-'; " + "( uname -m 2>/dev/null || printf 'unknown') ))"); } p = stpcpy(p, "\"\n" "[ x\"$1\" != x--assimilate ] && "