Skip to content

feat: Clang module map requires swift feature #163966

@torarnv

Description

@torarnv

As described in https://discourse.llvm.org/t/module-map-requires-as-non-hard-requirement/88589 we're looking for a way to provide Clang module maps for Qt for use with Swift, in a way that guarantees these module maps are not accidentally picked up when building C++/Objective-C code (to avoid #158249 and other possible issues).

If #163965 is implemented we can provide optional module maps, but there is currently no declared feature that would detect whether the current compilation unit is built to support Swift C++ interopt.

It would be nice if there was a swift or similar feature, that could be used to limit a Clang module map to only Swift C++ interopt consumers.

Thanks! 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:modulesC++20 modules and Clang Header Modules

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions