Conversation
(cherry picked from commit e5560e9)
| #elif defined(__DARWIN_UNIX03) || defined(__ANDROID__) || defined(_XOPEN_SOURCE) || defined(_SVID_SOURCE) | ||
| auto offset = seconds(-timezone); | ||
| #elif defined(__EMSCRIPTEN__) | ||
| auto offset = seconds(timezone); |
There was a problem hiding this comment.
Is this negated on purpose? Does ECMAScript somehow change the functionality here?
There was a problem hiding this comment.
It was necessary to make the tests pass, but it seems like a bug in Emscripten which implements all these UNIX APIs. Not sure what the current behavior is, though.
|
Also none of this builds at all on Windows, is that known? |
|
With the latest emsdk it works on Ubuntu but the tests abort with the following:
|
|
Are there any updates on this? |
|
I think it would be OK to merge this, since it causes no real changes in "normal" supported builds. The conflicts are probably easy to resolve. |
Cherry-picked @blaugold 's branch that adds WASM support via emscripten.
Made a few minor changes to get it to build again.
Added a Makefile to simplify (all types of) builds.