You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Passing a nonexistent -llibthatisnotthere should be (configurable to be) an error #4213
I feel like our default behavior should be to give a real error and a real exit code, and have some flag -missing-library-is-a-warning to demote the error to being just a warning, however this can cause breakages for people.
This is similar to #2714 (and #2713 which was already done earlier), the rationale of each of these items are about behaving consistently compared to other compiler toolchains. I think we should make this change and #2714 coordinated at the same time, to make people handle the resulting breakages in one go. Then have a good way to revert to just warning if people want to go with the old behavior.
@kripken: what's your thinking? I remember you gave me a green light on implementing #2714 a long time ago on IRC :) But I never quite found the good moment to do that which would have been decoupled from other big changes we have had. So we should find some moment to do this.
All of these entries (this bug + #2713 + #2714) originally arose from the fact that the lax/non-strict behavior was convenient to have when porting things, when one can ignore certain things while working on a build system to run through the Emscripten pipeline. Do we have any other non-rigorous behavior like these that we should account for while we are at this? I'd really like to make Emscripten behave strictly like other compilers with respect to these aspects (along with linker options or perhaps env. vars that allow falling to the lax behavior when it is convenient for a porter to do so)
Probably will need to pass the built-in auto-link src/library_x.js libraries in our ignore whitelist as well, which would be -lopenal, GLFW and GLEW libraries at least (not sure what the link directives for those are)
I'm ok with this change, if as in the other one, the error message explains how to return to the old more lenient behavior. Flag could parallel ERROR_ON_UNDEFINED_SYMBOLS, maybe ERROR_ON_MISSING_LIBRARIES.
This issue has been automatically marked as stale because there has been no activity in the past 2 years. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.
Activity
juj commentedon Mar 31, 2016
Probably will need to pass the built-in auto-link
src/library_x.jslibraries in our ignore whitelist as well, which would be-lopenal, GLFW and GLEW libraries at least (not sure what the link directives for those are)kripken commentedon Apr 1, 2016
I'm ok with this change, if as in the other one, the error message explains how to return to the old more lenient behavior. Flag could parallel
ERROR_ON_UNDEFINED_SYMBOLS, maybeERROR_ON_MISSING_LIBRARIES.stale commentedon Aug 30, 2019
This issue has been automatically marked as stale because there has been no activity in the past 2 years. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.