aedi: fix cmake cpu setting when cross-compiling x64 target on arm host

This commit is contained in:
alexey.lysiuk 2024-03-12 12:21:32 +02:00
parent fe8867dba3
commit a144e6204d

View file

@ -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: