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

msvc-named: add an executable that uses MSVC extensions #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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