-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emscripten is not supported with multithread (pthread flags is set on example but not on the library) #24
Comments
short solution: when multithread is enabled, please link Emscripten support pthread so you can use |
Since I stoled your GitHub Actions configuration sometimes ago. I added an emscripten build on ubuntu, if you want you can add it into yours to. So you will be able to compile your example in the web |
Just to make sure I understand correctly, reproc++ needs to link against I'll look into adding an emscripten build. |
Not exactly. Reproc++ need to link Threads::Threads when the option is enabled in the CMakelists.txt for emscripten otherwise the linker will be crazy |
the |
So with emscripten either all object files should be linked with If that's the case, I'll just define remove the |
Exactly we can ask @kripken but I'm 99% sure |
I think it's the best option. And we can check everything compile with GitHub Actions |
So you can have nice report like me :p |
I made the necessary changes. If The report would be overkill for reproc. I'd need more tests to actually get anything out of it. Let me know if more changes are needed. |
I will give it a try thank's and close the issue if it's working ! |
Yes, the linker will complain if you mix files with different wasm feature sets. So all files should be built with pthreads support, or none. |
Thank's for the clarification ! |
working. |
Resulting ld bug:
The text was updated successfully, but these errors were encountered: