With https://reviews.llvm.org/D87537 we made it an error
to export a mutable global with the +mutable-globals feature
present. However, this broke the use of the --export-all
flag because the __stack_pointer which is present in almost
all programs is a mutable global.
This also revealed that we didn't have any test coverage for
the --export-all flag.
This change fixes the current breakage on the emscripten-releases
roller.
clang-tidy: warning: 'auto *global' can be declared as 'const auto *global' [llvm-qualified-auto]
not useful