From a144e6204d0bf2223e70d7410d80960cd8e9f94e Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 12 Mar 2024 12:21:32 +0200 Subject: [PATCH] aedi: fix cmake cpu setting when cross-compiling x64 target on arm host --- aedi/target/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aedi/target/base.py b/aedi/target/base.py index 231c42b6..846058c8 100644 --- a/aedi/target/base.py +++ b/aedi/target/base.py @@ -409,7 +409,7 @@ class CMakeTarget(BuildTarget): architecture = state.architecture() if architecture != machine(): args.append('-DCMAKE_SYSTEM_NAME=Darwin') - args.append('-DCMAKE_SYSTEM_PROCESSOR=' + 'aarch64' if architecture == 'arm64' else architecture) + args.append('-DCMAKE_SYSTEM_PROCESSOR=' + ('aarch64' if architecture == 'arm64' else architecture)) sdk_path = state.sdk_path() if sdk_path: