Hi Jeremy, Quoting Jeremy James (2022-02-10 19:00:26) > If emcc is run with --closure 1 then you receive an error that the > command '--max_old_space_size=8192' is invalid.
Yes, this is a known issue, documented in README.Debian: https://salsa.debian.org/js-team/emscripten/-/blob/debian/latest/debian/README.Debian#L50 > Since max_old_space_size is a nodejs parameter that would have been > inserted into the return value of > shared.get_npm_cmd('google-closure-compiler'), I would suggest > removing the 'if not WINDOWS' section condition altogether in [patch > 2009_closure-compiler.patch]. Thanks for the suggestion. I wonder if such change will actually be any better: I very much doubt that the horribly old closure-compiler available in Debian can do *anything* sensible, but would be happy if proven wrong. Did you test that suggested change, using closure-compiler in Debian? > A workaround is to set CLOSURE_COMPILER, except there was a separate > upstream bug that broke this until recently [1]. > > [1] https://github.com/emscripten-core/emscripten/pull/15008 Sounds like you have some knowledge/experience here. I am open to improving README.Debian, but will need help: Please provide suggestions for rephrased text. Kind regards, - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: signature