Skip to content

Support for calling clang directly? #2045

Closed
@evanw

Description

@evanw

I'm trying to use precompiled headers with emscripten to speed up builds. However, it doesn't seem like there is any support for calling clang directly. One hack that almost works is to pass flags via EMMAKEN_CFLAGS, but that doesn't work when there are no input files since in that case emcc doesn't even call clang. The only way I could get it to work was to run emcc with -v and copy the correct arguments to clang (defines, header include paths, and such) from the verbose output. But this feels like a fragile hack. Is there a way to drive clang directly with all of the correct include paths and other stuff set up?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions