xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
9.87k stars 776 forks source link

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

Closed yamader closed 3 months ago

yamader commented 3 months ago

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 commented 3 months ago

you can open a pr to add them