Closed
Description
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
Labels
No labels