Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add missing C++20 Modules file extension #5280

Closed
yamader opened this issue Jun 30, 2024 · 1 comment
Closed

Please add missing C++20 Modules file extension #5280

yamader opened this issue Jun 30, 2024 · 1 comment

Comments

@yamader
Copy link
Contributor

yamader commented Jun 30, 2024

Is your feature request related to a problem? Please describe.

xmake does not recognize some file extensions used in C++ Modules.
Those extensions are supported by common compilers and should be supported by xmake as well.
Currently missing support is for .ccm, .cxxm, and .c++m.

cf. clang and gcc code
https://github.com/llvm/llvm-project/blob/dc410f94/clang/lib/Driver/Types.cpp#L364-L366
https://github.com/gcc-mirror/gcc/blob/ff41abd/gcc/cp/lang-specs.h#L43-L47

Describe the solution you'd like

Simply add the extensions (ccmcxxmc++m) here and it will work.

Describe alternatives you've considered

No response

Additional context

No response

@waruqi
Copy link
Member

waruqi commented Jul 1, 2024

you can open a pr to add them

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

No branches or pull requests

2 participants