Skip to content

Add msvc default build rule #17

@mls-m5

Description

@mls-m5

It is time to start building other projekts on windows.

Considerations

When compiling with msvc, it differs from compiling with gcc or clang. More specificaly, when compiling with gcc or clang generating the .o-file and the .pcm-file is two separate steps, but building with msvc this is done with a single step.

Compiling with msvc is something similar to this

cl /c /EHsc /RTC1 /MDd /std:c++latest /ifcOutput "test2.cppm.ifc" /Fo"test.obj" /Fd"vc142.pdb" /Gd /interface /analyze- /FC  /TP "test2.cppm"

Note there that the precompiled file is called ifc here.. It is possible to rename it to pcm, but i do not know if it is possible to use it then. Note also that if there is no export module ...;-statement in a file, no ifc is generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions