premake / premake/premake-core

C++20 module support

Open
#2,767 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C
Stars
3.6k
Forks
654
Avg merge
1d 1h
Merged PRs (30d)
13

Description

Is there a plan to support C++20 modules for non-vstudio generators? This is not an easy task, it would probably require a major structural change that adds a prebuild step to:

  • Call toolset-specific tools (e.g. clang-scan-deps) to scan for module dependencies and emit this info
  • Parse the output to determine dependencies
  • Dynamically add these dependencies to the build graph for makefile/ninja

It seems that the major compiler vendors have now stabilised their module scanning tools and have adopted a single dependency generation format.

Is this within scope of the Premake project?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the non-vstudio generators and the compiler-vendor module scanning tools named in the issue, including clang-scan-deps. Determine whether dependency output can be scanned, parsed, and added to makefile/ninja build graphs; done would require an agreed scope and implementation plan.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.