Skip to content

[clang] [module] Can we compile an -x cuda or -x hip C++ file into a C++20 Module? #156516

@anonymouspc

Description

@anonymouspc

clang supports clang -x cuda <file.cpp> to compile a cuda source/header. clang also supports clang -x c++-module --precompile <file.cpp> to compile a C++20-module.

Can we use it together? Then we can make a cuda header into a module, which greatly bursts compile time. I wonder is this tended to be in future plan :)

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:modulesC++20 modules and Clang Header ModulesquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions