Skip to content

Add modules support #2299

Description

@Benio101

Feature request

I do request adding modules support.

Description

Modules is a C++20 feature that fundamentally reduce recompilling time.

Compiler support

MSVC fully supports it since 16.8.
Many other popular compilers, like GCC or clang, supports modules partially and shall support modules fully soon™.

Static linking alternative

There are significant differences between static linking and modules and modules should be available at least as an alternative.

Prerequisites

  • Restructure the code to get module partitions.
  • Xeither convert the existing code into conditional modules using __cpp_modules standard feature testing macro xor add module partition files along with the main module file that imports all partitions. In the last case, you should choose the modules extension name (eg /[ci]xx/ xor /c[px+]{2}m/).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolved - pending reviewIssue waiting for feedback from the original author

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions