Skip to content

Install missing CSystem headers with CMake#323

Merged
glessard merged 1 commit into
apple:release/1.7.0from
fallintoplace:fix/csystem-install-headers
Jun 13, 2026
Merged

Install missing CSystem headers with CMake#323
glessard merged 1 commit into
apple:release/1.7.0from
fallintoplace:fix/csystem-install-headers

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

Summary

This updates the CSystem CMake install list to include the headers that installed consumers need:

  • CSystemWASI.h, which is referenced by module.modulemap
  • io_uring.h, which is included by CSystemLinux.h

Why

The previous install list copied the module map and several platform headers, but left out two headers required by that installed module. That can break consumers that import CSystem from a CMake-installed package outside the source tree.

Validation

  • cmake -S . -B .build/cmake-install-check-ninja -G Ninja -DCMAKE_INSTALL_PREFIX=.build/install-check-ninja
  • cmake --build .build/cmake-install-check-ninja
  • cmake --install .build/cmake-install-check-ninja
  • printf '@import CSystem;\nint main(void) { return 0; }\n' | clang -fmodules -I .build/install-check-ninja/include/CSystem -x objective-c -c -o /dev/null -

@glessard

Copy link
Copy Markdown
Contributor

@swift-ci please test

@glessard glessard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@glessard

Copy link
Copy Markdown
Contributor

@fallintoplace could you rebase your change onto the release/1.7.0 branch and target that branch for the pull request?

@fallintoplace fallintoplace force-pushed the fix/csystem-install-headers branch from e3ddf99 to 8b86871 Compare June 13, 2026 15:58
@fallintoplace fallintoplace changed the base branch from main to release/1.7.0 June 13, 2026 15:58
@glessard glessard merged commit 776989a into apple:release/1.7.0 Jun 13, 2026
54 checks passed
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.

2 participants