Skip to content

[clang-cl] --precompile make -fmodule-output directory ignored #140825

@Arthapz

Description

@Arthapz

when using clang-cl, --precompile seems to force the pcm file to be generated in the directory when clang is invoked instead of respecting -fmodule-output

Image
// test.mpp
export module Test;
> F:\llvm\bin\clang-cl -std:c++20 -x c++-module -fmodule-output=a\test.pcm test.mpp -c
> F:\llvm\bin\clang-cl -std:c++20 -x c++-module -fmodule-output=a\test.pcm test.mpp --precompile

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-cl`clang-cl` driver. Don't use for other compiler parts

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions