mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This nudges the Glibc modulemap just enough to get SwiftPM and later targets building. Without it, Swift tries to import the signal hander APIs through CDispatch instead of Glibc. CDispatch shouldn't be directly imported, so recommending that is nonsensical. This is not a full solution for all headers, but meant to perturb the module machinery sufficiently that it pulls signal.h into glibc correctly. Works around: ``` Swift-Project/swiftpm/Sources/Basics/Cancellator.swift:79:24: error: property '__sigaction_u' is not available due to missing import of defining module 'CDispatch' [#MemberImportVisibility] ```
1.8 KiB
1.8 KiB