In general, I'm afraid there isn't an automatic and safe way to do this. If LLVM optimizations change (between -O3 and -Oz, or after an LLVM update with the same opts) then inlining might cause the call stacks to look different. If less is inlined, you'd need more functions in your list, if you use the only-list.
But the risk here might be small in practice, at least in my experience. If you make a single list for the union of -O3 and -Oz then it should work for both, and it is very rare that LLVM changes enough to cause problems. - Alon On Tue, Aug 24, 2021 at 9:28 PM Александр Гурьянов <[email protected]> wrote: > Hi, everyone. I have well tuned list of asyncify functions for my js-dos > project. If I understand correctly this function list is valid only for > specific version of emscripten and optimizations flags. I compile project > with -Oz flag, and if I change it to -O3 the asyncfiy list will be > incomplete. > > So, Am I need somehow maintain lists for Oz and O3 separately? This is > first problem, but not so important I can use only Oz flag. > > BUT, now I thinking how to update emscripten version. Is it true that > updating emscripten to next version can require also rebuilding asyncify > list? Can I do it safely somehow? > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/emscripten-discuss/CAKOm%3DVHXHQw4Lt7HpAyg9pSDZ2iEU95VEhwzhr2%3DWMXnaKCxWw%40mail.gmail.com > <https://groups.google.com/d/msgid/emscripten-discuss/CAKOm%3DVHXHQw4Lt7HpAyg9pSDZ2iEU95VEhwzhr2%3DWMXnaKCxWw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpTrNF2p%2Bae1VHhb0s397WSM5L4XA%3D1qv1JuOiATGrztDg%40mail.gmail.com.
