How to use custom build of clang (and modules) #23391
Replies: 3 comments 26 replies
-
The version of clang that comes with emscripten/emsdk is basically tip-of-tree so you should not need to use a custom version just to get module support (i.e. the version of clang we ship should have all the latest module support). However, emscripten itself still doesn't have integrated module support. See #21987 for example. However if you do want to use your down version of clang when |
Beta Was this translation helpful? Give feedback.
-
@sbc100 Hi Sam. I was looking into this issue, and it seems that the only thing I need to do is to manually add a void emscripten_glfw3_context_init(emscripten::glfw3::Context *iContext,
float iScale,
ScaleChangeCallback, WindowResizeCallback, KeyboardCallback, ClipboardStringCallback, RequestFullscreen, ErrorHandler); emscripten_glfw3_context_init__deps: ['$specialHTMLTargets'],
emscripten_glfw3_context_init__proxy: 'sync',
emscripten_glfw3_context_init__sig: 'vpfpppppp', // <- add this?
emscripten_glfw3_context_init: (context, scale, scaleChangeCallback, windowResizeCallback, keyboardCallback, clipboardCallback, requestFullscreen, errorHandler) => { I assume I probably also need to add entries for all new Do I need the port file to also do something special with the |
Beta Was this translation helpful? Give feedback.
-
I have created PR that implements the changes discussed to support wasm64 |
Beta Was this translation helpful? Give feedback.
-
Hi all. I have a custom build of clang that I'd like to use with emcc. I set
EMCC_LLVM_ROOT
to the build directory of clang I compiled from source andemcc --check
seems to return OK.Now I am trying to use a testing version of clang compiler with C++ modules support. How do I continue using those features in my code but build a wasm target?
I seemingly am running into a bunch of compiler errors due to missing headers with a simple C++ module project.
Beta Was this translation helpful? Give feedback.
All reactions