godot/platform
Rémi Verschelde e647b5b73c HTML5: Fix support for Emscripten 1.39.1+
A change in upstream Emscripten 1.39.1+ made our buildsystem error
out where it was previously only issuing a warning:
```
[  5%] Linking Static Library ==> main/libmain.javascript.opt.bc
shared:WARNING: Assuming object file output in the absence of `-c`, based on output filename. Please add with `-c` or `-r` to avoid this warning
Ranlib Library         ==> main/libmain.javascript.opt.bc
/opt/emsdk/upstream/bin/llvm-ranlib: error: unable to load 'main/libmain.javascript.opt.bc': file too small to be an archive
```

As advised on emscripten-core/emscripten#9806, we should be using
`emar` here to create the static library and not `emcc`.
This was apparently done to workaround Emscripten issues in the past,
but evidently this is no longer necessary.

The rest of the `env` redefinitions should probably be re-assessed
against the current state of Emscripten.

Fixes #33374.

(cherry picked from commit e9e2a4b044)
2019-11-29 15:59:52 +01:00
..
android Android: Restore support for android_stl=no builds 2019-07-30 15:21:12 +02:00
haiku Don't use -ffast-math or other unsafe math optimizations 2019-07-03 15:53:22 +02:00
iphone Fix crash on exit or resume on iOS 13 2019-11-08 14:09:25 +01:00
javascript HTML5: Fix support for Emscripten 1.39.1+ 2019-11-29 15:59:52 +01:00
osx Fix non-HiDPI mode on HiDPI displays on macOS Catalina. 2019-10-25 16:32:38 +02:00
server Don't use -ffast-math or other unsafe math optimizations 2019-07-03 15:53:22 +02:00
uwp Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
windows Check project settings live before lookup in crash handler 2019-07-03 17:02:13 +02:00
x11 Check project settings live before lookup in crash handler 2019-07-03 17:02:13 +02:00
register_platform_apis.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
SCsub disable caching for targets using helper functions 2017-11-28 23:24:12 -04:00