xcode backend builds for wrong CPU architecture
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6.6k
- Forks
- 1.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 33
Description
Describe the bug
After upgrading xcode to version 12.4, meson's xcode backend seems to try to build for all CPU architectures (e.g. arm64 and intel), instead of just the one that the user specifies. Unfortunately, when building for arm64, I get compile error (because the 3rd-party libs are compiled for intel) and the build fails.
To Reproduce
Upgrade to xcode 12.4 or newer, and try building an example project using meson, on a PC with intel CPU
Expected behavior
Meson should honor the "host" cpu param
system parameters
Native build
Mac OS Catalina
meson version 0.57.1
python version 3.9.2
** output **:
warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no run destination to provide an active architecture; building for all applicable architectures
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the example project with Meson's Xcode backend on an Intel Mac using Xcode 12.4 or newer, with the host CPU parameter set. Inspect the Xcode backend's architecture handling and verify that the generated build honors the requested host architecture rather than building for arm64 and Intel.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, python
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100