Skip to content

Commit

Permalink
aedi: fix cmake cpu setting when cross-compiling x64 target on arm host
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Mar 12, 2024
1 parent fe8867d commit a144e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aedi/target/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def configure(self, state: BuildState):
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:
Expand Down

0 comments on commit a144e62

Please sign in to comment.