cxx-modules-sandbox icon indicating copy to clipboard operation
cxx-modules-sandbox copied to clipboard

msvc-named: add an executable that uses MSVC extensions

Open mathstuf opened this issue 3 years ago • 3 comments

MSVC prefers the .ixx and .cppm extensions for C++20 module interface units. Add a test that uses these extensions.

Fixes: #24


Cc: @bradking

mathstuf avatar Feb 25 '22 17:02 mathstuf

I'll have to respin the Docker image with new versions of things.

mathstuf avatar Feb 25 '22 17:02 mathstuf

LGTM. In testing this I found that MSVC's -scanDependencies option breaks on .cppm, but works for .cpp or .ixx. I'll handle reporting this to MS. Meanwhile, this representative case can be merged.

bradking avatar Mar 02 '22 16:03 bradking

It turns out that MSVC doesn't recognize .cppm as C++ and needs -TP explicitly. It does recognize .cpp and .ixx as C++.

bradking avatar Mar 02 '22 17:03 bradking