How to use custom build of clang (and modules) #23391
-
|
[deleted] |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 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.
If you really want to this bleeding edge C++23 support you could try updating the copy of libc++ in emscripten. We have a script for doing this called
./system/lib/update_libcxx.pywhich we use, but its not really designed for end users. You could also try just dropping in the missing header file intosystem/lib/libcxx. Once you have updated you can run./embuilder build sysroot libcxxor you can run./emcc --clear-cacheto clear the cache and rebuild everything.