Allow dlopen/dlsym to fail without aborting #16254
disarray2077
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
I think your request is reasonable. We should probably just return an error code as you say. If you would like to send a patch that seems reasonable. I think we may want to continue to log a useful error message at least in debug builds, since calling dlopen or dlsym in builds that don't support it doesn't make much sense and is probably something that the developer would want to fix. Out of interest, is this not something you would not want to fix your application? Do you have some reason to want to call those function even though you know they will fail? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! This is my first time interacting with emscripten so sorry If this idea is unreasonable, but with the knowledge I currently have I think it could be a good idea to allow
dlopen
/dlsym
to fail without aborting when linking support isn't necessary, maybe through some flag like-s USE_MODULES=0
or something more specific like `-s NO_MODULE="['module.so']"Currently, I can edit the JS to achieve the same result but doing this is less than ideal.
Beta Was this translation helpful? Give feedback.
All reactions