mozjs
mozjs copied to clipboard
`type_traits` not found when building on Linux
Not exactly an issue but if anyone encounters error messages like type_traits not found when building mozjs, it's probably because you need to install newer version of libstdc++.
As of spidermonkey 107, I need to install libstdc++-12 on debian based distributions.
This was indeed very helpful.
There is also --enable-stdcxx-compat configure flag https://searchfox.org/mozilla-esr115/source/build/moz.configure/toolchain.configure#2800, but we would need some kind of detection for it.