Remove some remaining internal uses of the old USE_PTHREADS settings#19474
Remove some remaining internal uses of the old USE_PTHREADS settings#19474
Conversation
e8bc71c to
eebbead
Compare
| '-sMIN_CHROME_VERSION=58', | ||
| '-sGL_WORKAROUND_SAFARI_GETCONTEXT_BUG=0', | ||
| '-sNO_FILESYSTEM', | ||
| '-sSTRICT', |
There was a problem hiding this comment.
Why add this? I'd think the opposite is better as it's closer to what most users do.
There was a problem hiding this comment.
This test is all about specifying as many non-default settings as possible in order to minimize code size. While adding -sSTRICT here doesn't currently shave any bytes of the code size one could imagine that it could reasonable do this (imagine a case where we need to include legacy support for something, but we can avoid doing that in strict mode).
Adding this setting here triggers all the code paths where the old name (USE_PTHREADS) was incorrectly used internally (but ignored because of we allow the old name to be used as an alias by default).
In other words, this change is what actually tests that I've fixed the bug.
These were not showing up in tests because they only show up with
-sSTRICT+-O2(or above).I'm not sure how I missed them in #18923. My guess is that they might have shown up as part of later commits.
Fixes: #19471