Skip to content

Conversation

@mathstuf
Copy link
Owner

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
Copy link
Owner Author

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

@mathstuf mathstuf force-pushed the msvc-named-extensions branch from 3d64971 to b036f85 Compare February 25, 2022 18:37
MSVC prefers the `.ixx` and `.cppm` extensions for C++20 module
interface units. Add a test that uses these extensions.

Fixes: #24
@bradking
Copy link

bradking commented Mar 2, 2022

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
Copy link

bradking commented Mar 2, 2022

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make an example that shows the Visual Studio differences

2 participants