Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly fail if macOS universal build is attempted #86

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

bgilbert
Copy link
Collaborator

@bgilbert bgilbert commented Apr 8, 2024

Certain Meson compiler checks fail if CFLAGS has -arch x86_64 -arch arm64. This was causing us not to set HAVE_UNISTD_H, and then to fail the build on an implicit function declaration. Detect this configuration during setup and fail with a clearer error.

https://trac.macports.org/ticket/69676

Certain Meson compiler checks fail if CFLAGS has
`-arch x86_64 -arch arm64`.  This was causing us not to set HAVE_UNISTD_H,
and then to fail the build on an implicit function declaration.  Detect
this configuration during setup and fail with a clearer error.

https://trac.macports.org/ticket/69676
bgilbert added a commit to macports/macports-ports that referenced this pull request Apr 8, 2024
Certain Meson checks don't work properly for universal builds, causing
libdicom to skip including unistd.h and then fail the build on an implicit
function declaration.  Use muniversal to build each arch separately.

Fixes: https://trac.macports.org/ticket/69676
See: ImagingDataCommons/libdicom#86
@jcupitt jcupitt merged commit 01a64c2 into ImagingDataCommons:main Apr 8, 2024
5 checks passed
@jcupitt
Copy link
Collaborator

jcupitt commented Apr 8, 2024

Thanks Benjamin!

@bgilbert bgilbert deleted the universal branch April 8, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants