Skip to content

[C++][Modules] -fmodule-output does nothing #119929

@davidstone

Description

@davidstone

Given some module in file a.cpp

export module b;

Compiling it with

clang++ -std=c++20 -x c++-module -fmodule-output=c.pcm --precompile a.cpp

I would expect to produce a file c.pcm. Instead it produces a file a.pcm. Am I misunderstanding the purpose of this option? The documentation states

-fmodule-output=<arg>
Save intermediate module file results when compiling a standard C++ module unit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:modulesC++20 modules and Clang Header ModulesinvalidResolved as invalid, i.e. not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions